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
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
124
Issues
124
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
14889667
Commit
14889667
authored
Feb 10, 2017
by
Leon Gondelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coercions for '=': a temporary solution for x:63 = 0
parent
4c99984c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/core/dterm.ml
src/core/dterm.ml
+6
-1
No files found.
src/core/dterm.ml
View file @
14889667
...
...
@@ -344,7 +344,6 @@ let dterm tuc ?loc node =
end
with
Not_found
->
Loc
.
error
?
loc
:
dt
.
dt_loc
FmlaExpected
end
|
None
->
dt
and
dterm_node
loc
node
=
let
mk_dty
ty
=
{
dt_node
=
node
;
dt_dty
=
ty
;
dt_loc
=
loc
}
in
match
node
with
...
...
@@ -356,6 +355,12 @@ let dterm tuc ?loc node =
mk_dty
(
Some
dty_int
)
|
DTconst
(
Number
.
ConstReal
_
)
->
mk_dty
(
Some
dty_real
)
|
DTapp
(
ls
,
dtl
)
when
ls_equal
ls
ps_equ
->
let
dtyl
,
dty
=
specialize_ls
ls
in
let
dtl
=
dty_unify_app_map
ls
dterm_expected
(
List
.
rev
dtl
)
dtyl
in
{
dt_node
=
DTapp
(
ls
,
dtl
);
dt_dty
=
dty
;
dt_loc
=
loc
}
|
DTapp
(
ls
,
dtl
)
->
let
dtyl
,
dty
=
specialize_ls
ls
in
{
dt_node
=
DTapp
(
ls
,
dty_unify_app_map
ls
dterm_expected
dtl
dtyl
);
...
...
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