Skip to content

Commit

Permalink
Reset upjumping_gotos
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Nov 10, 2023
1 parent 47d0f5d commit 4417b9c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/common/util/cilfacade.ml
Original file line number Diff line number Diff line change
Expand Up @@ -667,14 +667,19 @@ let find_stmt_sid sid =
with Not_found -> IntH.find (ResettableLazy.force stmt_sids) sid


(** Contains the locations of the upjumping gotos and the respective functions
* they are being called in. *)
let upjumping_gotos : (location * fundec) list ref = ref []

let reset_lazy () =
StmtH.clear pseudo_return_to_fun;
ResettableLazy.reset stmt_fundecs;
ResettableLazy.reset varinfo_fundecs;
ResettableLazy.reset name_fundecs;
ResettableLazy.reset varinfo_roles;
ResettableLazy.reset original_names;
ResettableLazy.reset stmt_sids
ResettableLazy.reset stmt_sids;
upjumping_gotos := []


let stmt_pretty_short () x =
Expand All @@ -699,8 +704,4 @@ let add_function_declarations (file: Cil.file): unit =
in
let fun_decls = List.filter_map declaration_from_GFun functions in
let globals = upto_last_type @ fun_decls @ non_types @ functions in
file.globals <- globals

(** Contains the locations of the upjumping gotos and the respective functions
* they are being called in. *)
let upjumping_gotos : (location * fundec) list ref = ref []
file.globals <- globals

0 comments on commit 4417b9c

Please sign in to comment.