Skip to content

Commit

Permalink
add attribute to ghost variables
Browse files Browse the repository at this point in the history
  • Loading branch information
FungOliver committed Feb 2, 2024
1 parent 81b450a commit 9d46472
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/util/richVarinfo.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
open GoblintCil

let create_var ~isGlobal name typ = Cilfacade.create_var @@ makeVarinfo isGlobal name typ
let create_var ~isGlobal name typ =
let v = Cilfacade.create_var @@ makeVarinfo isGlobal name typ in
v.vattr <- [Attr("ghost",[])]; (*add attribute to track those variables in [relationPriv]*)
v

let single ~name typ =
let vi = lazy (create_var ~isGlobal:true name typ) in
Expand Down

0 comments on commit 9d46472

Please sign in to comment.