Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
why3
Commits
017f3334
Commit
017f3334
authored
6 years ago
by
Andrei Paskevich
Browse files
Options
Downloads
Patches
Plain Diff
Vc: another attempt at (slightly) improving termination checking
parent
22eea516
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mlw/vc.ml
+7
-9
7 additions, 9 deletions
src/mlw/vc.ml
with
7 additions
and
9 deletions
src/mlw/vc.ml
+
7
−
9
View file @
017f3334
...
...
@@ -279,14 +279,12 @@ let decrease_def env loc old_t t =
let
decrease
env
loc
attrs
expl
olds
news
=
if
olds
=
[]
&&
news
=
[]
then
t_true
else
let
rec
decr
olds
news
=
match
olds
,
news
with
|
(
old_t
,
Some
old_r
)
::
olds
,
(
t
,
Some
r
)
::
news
when
oty
_equal
old_t
.
t_ty
t
.
t_ty
&&
ls_equal
old_r
r
->
|
(
old_t
,
Some
old_r
)
::
olds
,
(
t
,
Some
r
)
::
news
when
ls_equal
old_r
r
->
if
t
_equal
old_t
t
then
decr
olds
news
else
let
dt
=
t_and
(
ps_app
r
[
t
;
old_t
])
(
acc
env
r
old_t
)
in
t_or_simp
dt
(
t_and_simp
(
t_equ_simp
old_t
t
)
(
decr
olds
news
))
|
(
old_t
,
None
)
::
olds
,
(
t
,
None
)
::
news
when
oty_equal
old_t
.
t_ty
t
.
t_ty
->
if
t_equal
old_t
t
then
decr
olds
news
else
t_or_simp
dt
(
t_and_simp
(
t_equ
old_t
t
)
(
decr
olds
news
))
|
(
old_t
,
None
)
::
olds
,
(
t
,
None
)
::
news
when
oty_equal
old_t
.
t_ty
t
.
t_ty
->
if
t_equal
old_t
t
then
decr
olds
news
else
let
dt
=
decrease_def
env
loc
old_t
t
in
t_or_simp
dt
(
t_and_simp
(
t_equ
old_t
t
)
(
decr
olds
news
))
|
(
old_t
,
None
)
::_,
(
t
,
None
)
::_
->
...
...
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