Skip to content
Snippets Groups Projects
Commit 6d81ddc4 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[kernel] update to new Current_loc API following rebase

parent da0bf937
No related branches found
No related tags found
No related merge requests found
...@@ -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.CurrentLoc.get () in let current_loc = Current_loc.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.CurrentLoc.get () in let current_loc = Current_loc.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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment