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
81108f21
Commit
81108f21
authored
1 year ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Octagons: optimizes function [filter].
parent
1d3327de
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/eva/domains/octagons.ml
+9
-4
9 additions, 4 deletions
src/plugins/eva/domains/octagons.ml
with
9 additions
and
4 deletions
src/plugins/eva/domains/octagons.ml
+
9
−
4
View file @
81108f21
...
@@ -1065,8 +1065,13 @@ module Deps = struct
...
@@ -1065,8 +1065,13 @@ module Deps = struct
let
filter
(
bases
:
Base
.
Hptset
.
t
)
(
m
,
i
:
t
)
:
VSet
.
t
*
t
=
let
filter
(
bases
:
Base
.
Hptset
.
t
)
(
m
,
i
:
t
)
:
VSet
.
t
*
t
=
let
i_inter
,
i_diff
=
BaseToVariables
.
partition_with_shape
bases
i
in
let
i_inter
,
i_diff
=
BaseToVariables
.
partition_with_shape
bases
i
in
let
vars
=
BaseToVariables
.
all_variables
i_diff
in
let
removed_vars
=
BaseToVariables
.
all_variables
i_diff
in
vars
,
VSet
.
fold
remove
vars
(
m
,
i_inter
)
let
m
=
VariableToDeps
.
diff_with_shape
removed_vars
m
in
let
filter
(
s1
,
s2
)
=
VSet
.
diff
s1
removed_vars
,
VSet
.
diff
s2
removed_vars
in
let
i
=
BaseToVariables
.
map
filter
i_inter
in
removed_vars
,
(
m
,
i
)
let
get_var_bases
(
m
,
_
:
t
)
(
var
:
Variable
.
t
)
=
let
get_var_bases
(
m
,
_
:
t
)
(
var
:
Variable
.
t
)
=
try
try
...
@@ -1870,8 +1875,8 @@ module Domain = struct
...
@@ -1870,8 +1875,8 @@ module Domain = struct
mem_var
x
&&
mem_var
y
mem_var
x
&&
mem_var
y
in
in
let
octagons
=
Octagons
.
filter
mem_pair
state
.
octagons
in
let
octagons
=
Octagons
.
filter
mem_pair
state
.
octagons
in
let
intervals
=
Intervals
.
filter
mem
_var
state
.
intervals
in
let
intervals
=
Intervals
.
diff_with_shape
removed
_var
s
state
.
intervals
in
let
relations
=
Relations
.
filter
mem
_var
state
.
relations
in
let
relations
=
Relations
.
diff_with_shape
removed
_var
s
state
.
relations
in
{
state
with
octagons
;
intervals
;
relations
;
deps
}
{
state
with
octagons
;
intervals
;
relations
;
deps
}
let
interprocedural_reuse
=
let
interprocedural_reuse
=
...
...
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