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
060a06cf
Commit
060a06cf
authored
8 years ago
by
Kostyantyn Vorobyov
Browse files
Options
Downloads
Patches
Plain Diff
Tracking variables by sets instead of lists
parent
c8510d71
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/e-acsl/exit_points.ml
+4
-6
4 additions, 6 deletions
src/plugins/e-acsl/exit_points.ml
with
4 additions
and
6 deletions
src/plugins/e-acsl/exit_points.ml
+
4
−
6
View file @
060a06cf
...
...
@@ -32,13 +32,13 @@ open Cil_datatype
tracked, they need to be removed from tracking. *)
module
SLocals
:
sig
val
add
:
stmt
->
varinfo
list
->
unit
val
find
:
stmt
->
v
arinfo
lis
t
val
find
:
stmt
->
V
arinfo
.
Set
.
t
val
is_empty
:
unit
->
bool
val
reset
:
unit
->
unit
end
=
struct
let
statement_locals
=
Stmt
.
Hashtbl
.
create
17
let
add
stmt
locals
=
Stmt
.
Hashtbl
.
replace
statement_locals
stmt
locals
Stmt
.
Hashtbl
.
replace
statement_locals
stmt
(
Varinfo
.
Set
.
of_list
locals
)
let
find
stmt
=
Stmt
.
Hashtbl
.
find
statement_locals
stmt
let
is_empty
()
=
...
...
@@ -91,11 +91,9 @@ let reset () =
LJumps
.
reset
()
let
is_empty
()
=
SLocals
.
is_empty
()
&&
Exits
.
is_empty
()
&&
LJumps
.
is_empty
()
SLocals
.
is_empty
()
&&
Exits
.
is_empty
()
&&
LJumps
.
is_empty
()
let
filter_vars
varlst1
varlst2
=
let
s1
=
Varinfo
.
Set
.
of_list
varlst1
in
let
s2
=
Varinfo
.
Set
.
of_list
varlst2
in
let
filter_vars
s1
s2
=
Varinfo
.
Set
.
elements
(
Varinfo
.
Set
.
diff
s1
s2
)
let
delete_vars
stmt
=
...
...
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