Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
bc541ef4
Commit
bc541ef4
authored
9 years ago
by
Martin Clochard
Browse files
Options
Downloads
Patches
Plain Diff
BySo: retore code for old-fashioned match spli
parent
ea0ab542
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/transform/introduction.ml
+1
-1
1 addition, 1 deletion
src/transform/introduction.ml
src/transform/split_goal.ml
+20
-1
20 additions, 1 deletion
src/transform/split_goal.ml
with
21 additions
and
2 deletions
src/transform/introduction.ml
+
1
−
1
View file @
bc541ef4
...
...
@@ -21,7 +21,7 @@ open Term
open
Decl
let
rec
intros
pr
f
=
match
f
.
t_node
with
|
Tbinop
(
Timplies
,
{
t_node
=
Tbinop
(
Tor
,
f2
,
{
t_node
=
Ttrue
})
}
,
f1
)
|
Tbinop
(
Timplies
,
{
t_node
=
Tbinop
(
Tor
,
f2
,
{
t_node
=
Ttrue
})
}
,
_
)
when
Slab
.
mem
Term
.
asym_label
f2
.
t_label
->
[
create_prop_decl
Pgoal
pr
f
]
|
Tbinop
(
Timplies
,
f1
,
f2
)
->
...
...
This diff is collapsed.
Click to expand it.
src/transform/split_goal.ml
+
20
−
1
View file @
bc541ef4
...
...
@@ -283,7 +283,26 @@ let rec split_core sp f =
in
begin
match
sp
.
comp_match
with
|
None
->
let
join
_
=
assert
false
in
(* TODO: 'naive' split *)
let
join
sbl
=
let
rec
zip_all
bf_top
bf_bot
=
function
|
[]
->
Unit
,
Unit
,
Unit
,
[]
,
[]
|
(
p
,
close
,
sf
)
::
q
->
let
c_top
=
close
p
t_true
and
c_bot
=
close
p
t_false
in
let
dp_top
=
c_top
::
bf_top
and
dp_bot
=
c_bot
::
bf_bot
in
let
pos
,
neg
,
side
,
af_top
,
af_bot
=
zip_all
dp_top
dp_bot
q
in
let
fzip
bf
af
mid
=
t_case
t
(
List
.
rev_append
bf
(
close
p
mid
::
af
))
in
let
zip
bf
mid
af
=
map
(
fun
t
->
!+
(
fzip
bf
af
t
))
(
fzip
bf
af
)
mid
in
zip
bf_top
sf
.
pos
af_top
++
pos
,
zip
bf_bot
sf
.
neg
af_bot
++
neg
,
zip
bf_top
sf
.
side
af_top
++
side
,
c_top
::
af_top
,
c_bot
::
af_bot
in
let
pos
,
neg
,
side
,
_
,
_
=
zip_all
[]
[]
sbl
in
pos
,
neg
,
side
in
k
join
|
Some
kn
->
if
Slab
.
mem
compiled
f
.
t_label
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment