Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charles Southerland
frama-c
Commits
38a48ece
Commit
38a48ece
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] CFG: force order of evaluation for conditions
parent
fcbebbd1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/wp/cfgCalculus.ml
+6
-4
6 additions, 4 deletions
src/plugins/wp/cfgCalculus.ml
with
6 additions
and
4 deletions
src/plugins/wp/cfgCalculus.ml
+
6
−
4
View file @
38a48ece
...
...
@@ -216,11 +216,13 @@ struct
and
control
env
a
s
:
W
.
t_prop
=
match
a
.
vertex_control
with
|
If
{
cond
;
vthen
;
velse
}
->
W
.
test
env
.
we
s
cond
(
wp
env
vthen
)
(
wp
env
velse
)
let
wthen
=
wp
env
vthen
in
let
welse
=
wp
env
velse
in
W
.
test
env
.
we
s
cond
wthen
welse
|
Switch
{
value
;
cases
;
default
}
->
W
.
switch
env
.
we
s
value
(
List
.
map
(
fun
(
e
,
v
)
->
[
e
]
,
wp
env
v
)
cases
)
(
wp
env
default
)
let
wcases
=
List
.
map
(
fun
(
e
,
v
)
->
[
e
]
,
wp
env
v
)
cases
in
let
wdefault
=
wp
env
default
in
W
.
switch
env
.
we
s
value
wcases
w
default
|
Loop
_
->
let
m
=
env
.
mode
in
let
smoking
=
...
...
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