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
126
Issues
126
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
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
339a7732
Commit
339a7732
authored
Sep 22, 2011
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify our formulas early
parent
caaba2d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/programs/pgm_wp.ml
src/programs/pgm_wp.ml
+2
-2
src/transform/eval_match.ml
src/transform/eval_match.ml
+1
-1
No files found.
src/programs/pgm_wp.ml
View file @
339a7732
...
...
@@ -671,13 +671,13 @@ let bool_to_prop env f =
|
Tapp
(
ls
,
[]
)
when
ls_equal
ls
ls_False
->
t_false
|
_
->
t_equ
(
f_btop
t
)
t_True
)
t_equ
_simp
(
f_btop
t
)
t_True
)
and
f_btop
f
=
match
f
.
t_node
with
|
Tapp
(
ls
,
[{
t_ty
=
Some
{
ty_node
=
Tyapp
(
ts
,
[]
)}}
as
l
;
r
])
when
ls_equal
ls
ps_equ
&&
ts_equal
ts
ts_bool
->
t_label
?
loc
:
f
.
t_loc
f
.
t_label
(
t_iff_simp
(
t_btop
l
)
(
t_btop
r
))
|
_
->
t_map
f_btop
f
|
_
->
t_map
_simp
f_btop
f
in
f_btop
f
...
...
src/transform/eval_match.ml
View file @
339a7732
...
...
@@ -115,7 +115,7 @@ let eval_match ~inline kn t =
let
vl
,
tl
,
f
=
List
.
fold_left
(
add_quant
kn
)
([]
,
tl
,
f
)
vl
in
t_label_merge
t
(
t_quant_simp
q
(
close
(
List
.
rev
vl
)
tl
(
eval
env
f
)))
|
_
->
t_map
(
eval
env
)
t
t_map
_simp
(
eval
env
)
t
in
eval
Mvs
.
empty
t
...
...
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