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
Deploy
Releases
Container Registry
Model registry
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
pub
frama-c
Commits
36104e93
Commit
36104e93
authored
5 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] fix duplicated block in
parent
8b39f0cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/calculus.ml
+1
-4
1 addition, 4 deletions
src/plugins/wp/calculus.ml
src/plugins/wp/cil2cfg.ml
+5
-1
5 additions, 1 deletion
src/plugins/wp/cil2cfg.ml
with
6 additions
and
5 deletions
src/plugins/wp/calculus.ml
+
1
−
4
View file @
36104e93
...
...
@@ -571,11 +571,8 @@ module Cfg (W : Mcfg.S) = struct
let
obj
=
get_only_succ
env
cfg
v
in
let
obj
=
wp_scope
wenv
b
.
blocals
Mcfg
.
SC_Block_out
obj
in
obj
|
Cil2cfg
.
VblkOut
_
->
|
Cil2cfg
.
VblkOut
_
|
Cil2cfg
.
VblkIn
_
->
get_only_succ
env
cfg
v
|
Cil2cfg
.
VblkIn
(
_
,
b
)
->
let
obj
=
get_only_succ
env
cfg
v
in
wp_scope
wenv
b
.
blocals
Mcfg
.
SC_Block_in
obj
|
Cil2cfg
.
Vstmt
s
->
let
obj
=
get_only_succ
env
cfg
v
in
wp_stmt
wenv
s
obj
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/cil2cfg.ml
+
5
−
1
View file @
36104e93
...
...
@@ -653,7 +653,11 @@ let block_scope_for_edge cfg e =
|
None
->
no_scope
|
Some
s'
->
block_scope
s
s'
end
|
_
->
(* TODO ? *)
no_scope
|
VblkIn
(
Bstmt
_
,
b
)
->
{
b_opened
=
[
b
]
;
b_closed
=
[]
}
|
Vcall
_
|
VblkIn
_
|
VblkOut
_
|
Vtest
(
false
,_,_
)
|
VfctIn
|
VfctOut
|
Vstart
|
Vend
|
Vexit
|
Vloop2
_
->
no_scope
let
has_exit
cfg
=
try
...
...
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