Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lutin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
verimag
synchrone
lutin
Commits
5fc14d2d
Commit
5fc14d2d
authored
Jul 03, 2019
by
erwan
Browse files
Options
Browse Files
Download
Plain Diff
Fix: Merge branch '2-issue-with-free-variables-constrained-in-the-type-declaration' (closes
#2
)
parents
2665211b
ccb8b62b
Pipeline
#26586
passed with stages
in 8 minutes and 52 seconds
Changes
3
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
585 additions
and
586 deletions
+585
-586
examples/Bug/freevar.lut
examples/Bug/freevar.lut
+5
-0
lutin/src/ne.ml
lutin/src/ne.ml
+3
-3
lutin/src/store.ml
lutin/src/store.ml
+577
-583
No files found.
examples/Bug/freevar.lut
0 → 100644
View file @
5fc14d2d
-- ok works fine, but not ko:
node
ko
()
returns
(
b
:
int
[
0
;
0
];
a
:
int
)
=
a
=
b
node
ok
()
returns
(
a
:
int
[
0
;
0
];
b
:
int
)
=
a
=
b
lutin/src/ne.ml
View file @
5fc14d2d
...
...
@@ -106,8 +106,8 @@ let (substl_to_string : subst list -> string) =
fun
sl
->
(
List
.
fold_left
(
fun
acc
((
vn
,
a
)
,
ne
)
->
(
acc
^
" "
^
(
Value
.
num_value_to_string
a
)
^
"."
^
vn
^
" -> "
^
to_string
ne
^
"
\n
"
)
(
acc
^
" "
^
(
Value
.
num_value_to_string
a
)
^
"."
^
vn
^
" -> "
^
to_string
ne
^
"
\n
"
)
)
""
sl
...
...
@@ -369,7 +369,7 @@ let (split : t -> split_res) =
let
divide
c1
c2
=
match
(
c1
,
c2
)
with
|
I
i1
,
I
i2
->
Num
.
eq_num
(
Num
.
mod_num
i2
i1
)
(
Num
.
Int
0
)
|
_
,_
->
true
|
_
,
_
->
assert
false
(* used to be "true" instead, but it looked weird! *)
in
let
cl
=
(
StringMap
.
fold
(
fun
v
c
acc
->
(
c
,
v
)
::
acc
)
ne
[]
)
in
let
res
=
...
...
lutin/src/store.ml
View file @
5fc14d2d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment