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
6d81ddc4
Commit
6d81ddc4
authored
1 year ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[kernel] update to new Current_loc API following rebase
parent
da0bf937
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/kernel_services/abstract_interp/origin.ml
+2
-2
2 additions, 2 deletions
src/kernel_services/abstract_interp/origin.ml
with
2 additions
and
2 deletions
src/kernel_services/abstract_interp/origin.ml
+
2
−
2
View file @
6d81ddc4
...
@@ -159,7 +159,7 @@ let is_current = function
...
@@ -159,7 +159,7 @@ let is_current = function
current location. *)
current location. *)
let
register_write
bases
t
=
let
register_write
bases
t
=
if
is_unknown
t
then
false
else
if
is_unknown
t
then
false
else
let
current_loc
=
Cil
.
Current
L
oc
.
get
()
in
let
current_loc
=
Current
_l
oc
.
get
()
in
let
is_new
=
not
(
History
.
mem
t
)
in
let
is_new
=
not
(
History
.
mem
t
)
in
let
change
(
w
,
r
,
b
)
=
let
change
(
w
,
r
,
b
)
=
LocSet
.
add
current_loc
w
,
r
,
Base
.
SetLattice
.
join
b
bases
LocSet
.
add
current_loc
w
,
r
,
Base
.
SetLattice
.
join
b
bases
...
@@ -171,7 +171,7 @@ let register_write bases t =
...
@@ -171,7 +171,7 @@ let register_write bases t =
(* Registers a read only if the current location is not that of the origin. *)
(* Registers a read only if the current location is not that of the origin. *)
let
register_read
bases
t
=
let
register_read
bases
t
=
if
not
(
is_unknown
t
||
is_current
t
)
then
if
not
(
is_unknown
t
||
is_current
t
)
then
let
current_loc
=
Cil
.
Current
L
oc
.
get
()
in
let
current_loc
=
Current
_l
oc
.
get
()
in
let
change
(
w
,
r
,
b
)
=
let
change
(
w
,
r
,
b
)
=
w
,
LocSet
.
add
current_loc
r
,
Base
.
SetLattice
.
join
b
bases
w
,
LocSet
.
add
current_loc
r
,
Base
.
SetLattice
.
join
b
bases
in
in
...
...
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