Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AVANZINI Martin
ecoimp
Commits
a3b4e8cf
Commit
a3b4e8cf
authored
Apr 05, 2020
by
AVANZINI Martin
Browse files
Merge branch 'cexp' of gitlab.inria.fr:mavanzin/pwhile into cexp
parents
e9807133
9d9e2a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PWhile/InvariantSolver/Naive.hs
View file @
a3b4e8cf
...
...
@@ -324,7 +324,7 @@ reduce (GEQ c (toFrac -> (lhs,f1)) (toFrac -> (rhs,f2))) = do
walkLhs
C
.
Sup
{}
_
_
=
error
"InvariantSolver.Naive.reduce: sup on lhs"
walkRhs
_
Bot
_
=
return
[]
-- walkRhs (C.E 0) _ _ = return []
-- walkRhs (C.E 0) _ _ = return []
// removes valid constraints in recursive calls
walkRhs
(
C
.
E
e
)
ctx
k
=
k
e
ctx
walkRhs
(
C
.
Cond
g
c1
c2
)
ctx
k
=
branch
g
walkRhs
c1
c2
ctx
k
walkRhs
(
C
.
Plus
c1
c2
)
ctx
k
=
add
walkRhs
c1
c2
ctx
k
...
...
Write
Preview
Supports
Markdown
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