Skip to content
Snippets Groups Projects
Commit 43bd8326 authored by Julien Signoles's avatar Julien Signoles Committed by Kostyantyn Vorobyov
Browse files

apply Project.on more carefully

parent 5b21aefc
No related branches found
No related tags found
No related merge requests found
...@@ -635,17 +635,16 @@ you must call function `__e_acsl_memory_init` by yourself.@]"; ...@@ -635,17 +635,16 @@ you must call function `__e_acsl_memory_init` by yourself.@]";
if not (may_safely_ignore assigned_lv) && if not (may_safely_ignore assigned_lv) &&
Mmodel_analysis.must_model_lval ~kf ~stmt checked_lv Mmodel_analysis.must_model_lval ~kf ~stmt checked_lv
then then
(* must be in the new project to build a new stmt *) let new_stmt =
Project.on (* must be in the new project to build a new stmt *)
prj Project.on
(fun () -> prj
let new_stmt = Misc.mk_debug_mmodel_stmt
Misc.mk_debug_mmodel_stmt (Misc.mk_initialize loc assigned_lv) (Misc.mk_initialize loc assigned_lv)
in in
let before = Cil.memo_stmt self#behavior stmt in let before = Cil.memo_stmt self#behavior stmt in
let new_stmt = Cil.memo_stmt self#behavior new_stmt in let new_stmt = Cil.memo_stmt self#behavior new_stmt in
function_env := Env.add_stmt ~before !function_env new_stmt) function_env := Env.add_stmt ~before !function_env new_stmt
()
method !vinst = function method !vinst = function
| Set(old_lv, _, _) -> | Set(old_lv, _, _) ->
......
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