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
123
Issues
123
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
5e4507b3
Commit
5e4507b3
authored
May 20, 2017
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expr: be less zealous on term-to-fmla conversion
parent
1f56973a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/mlw/expr.ml
src/mlw/expr.ml
+2
-4
No files found.
src/mlw/expr.ml
View file @
5e4507b3
...
...
@@ -571,15 +571,13 @@ let rec raw_of_expr prop e = match e.e_node with
pure_of_expr
prop
e
|
Eif
(
e0
,
e1
,
e2
)
when
is_e_false
e1
&&
is_e_true
e2
->
t_not
(
pure_of_expr
true
e0
)
|
Eif
(
e0
,
e1
,
e2
)
when
is_e_false
e2
->
|
Eif
(
e0
,
e1
,
e2
)
when
prop
&&
is_e_false
e2
->
t_and
(
pure_of_expr
true
e0
)
(
pure_of_expr
true
e1
)
|
Eif
(
e0
,
e1
,
e2
)
when
is_e_true
e1
->
|
Eif
(
e0
,
e1
,
e2
)
when
prop
&&
is_e_true
e1
->
t_or
(
pure_of_expr
true
e0
)
(
pure_of_expr
true
e2
)
|
Eif
(
e0
,
e1
,
e2
)
->
let
prop
=
prop
||
ity_equal
e
.
e_ity
ity_bool
in
t_if
(
pure_of_expr
true
e0
)
(
pure_of_expr
prop
e1
)
(
pure_of_expr
prop
e2
)
|
Ecase
(
d
,
bl
)
->
let
prop
=
prop
||
ity_equal
e
.
e_ity
ity_bool
in
let
conv
(
p
,
e
)
=
t_close_branch
p
.
pp_pat
(
pure_of_expr
prop
e
)
in
t_case
(
pure_of_expr
false
d
)
(
List
.
map
conv
bl
)
|
Etry
_
|
Eraise
_
|
Eabsurd
->
raise
Exit
...
...
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