Skip to content
Snippets Groups Projects
Commit 31b10381 authored by Boris Yakobowski's avatar Boris Yakobowski
Browse files

Merge branch 'feature/virgile/filecheck-result' into 'master'

Adapt to trunk branch  feature/virgile/filecheck-result

(removal of field return_stmt)

See merge request !71
parents 231db080 9845f777
No related branches found
No related tags found
No related merge requests found
...@@ -191,16 +191,15 @@ let dup_fundec loc spec bhv kf vi new_vi = ...@@ -191,16 +191,15 @@ let dup_fundec loc spec bhv kf vi new_vi =
sbody = body; sbody = body;
smaxstmtid = None; smaxstmtid = None;
sallstmts = []; sallstmts = [];
sspec = new_spec }, sspec = new_spec }
return
let dup_global loc old_prj spec bhv kf vi new_vi = let dup_global loc old_prj spec bhv kf vi new_vi =
let name = vi.vname in let name = vi.vname in
Options.feedback ~dkey ~level:2 "entering in function %s" name; Options.feedback ~dkey ~level:2 "entering in function %s" name;
let fundec, return = dup_fundec loc spec bhv kf vi new_vi in let fundec = dup_fundec loc spec bhv kf vi new_vi in
let fct = Definition(fundec, loc) in let fct = Definition(fundec, loc) in
let new_spec = fundec.sspec in let new_spec = fundec.sspec in
let new_kf = { fundec = fct; return_stmt = Some return; spec = new_spec } in let new_kf = { fundec = fct; spec = new_spec } in
Kernel_function.Hashtbl.add fct_tbl new_kf (); Kernel_function.Hashtbl.add fct_tbl new_kf ();
Globals.Functions.register new_kf; Globals.Functions.register new_kf;
Globals.Functions.replace_by_definition new_spec fundec loc; Globals.Functions.replace_by_definition new_spec fundec loc;
......
...@@ -206,7 +206,7 @@ class e_acsl_visitor prj generate = object (self) ...@@ -206,7 +206,7 @@ class e_acsl_visitor prj generate = object (self)
(* Create and register [__e_acsl_globals_init] as kernel (* Create and register [__e_acsl_globals_init] as kernel
function *) function *)
let kf = let kf =
{ fundec = fct; return_stmt = Some return; spec = spec } { fundec = fct; spec = spec }
in in
Globals.Functions.register kf; Globals.Functions.register kf;
Globals.Functions.replace_by_definition Globals.Functions.replace_by_definition
......
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