File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -321,10 +321,7 @@ let selectArrayDomains file =
321321 set_bool " annotation.goblint_array_domain" true ;
322322 let thisVisitor = new addTypeAttributeVisitor in
323323 ignore (visitCilFileSameGlobals thisVisitor file);
324- (* Sync formal parameter attributes back to function types for correct CIL printing *)
325- iterGlobals file (function
326- | GFun (fd , _ ) -> setFormals fd fd.sformals
327- | _ -> () )
324+ Cilfacade. sync_formals file
328325(* small unrolled loops also set domain of accessed arrays to unroll, at the point where loops are unrolled*)
329326
330327
@@ -460,10 +457,7 @@ let apronOctagonOption factors file =
460457 Logs. info " Enabled octagon domain ONLY for:" ;
461458 Logs. info " %s" @@ String. concat " , " @@ List. map (fun info -> info.vname) allVars;
462459 List. iter (fun info -> info.vattr < - addAttribute (Attr (" goblint_relation_track" ,[] )) info.vattr) allVars;
463- (* Sync formal parameter attributes back to function types for correct CIL printing *)
464- iterGlobals file (function
465- | GFun (fd , _ ) -> setFormals fd fd.sformals
466- | _ -> () )
460+ Cilfacade. sync_formals file
467461 in
468462 {
469463 value = 50 * (List. length allVars) ;
Original file line number Diff line number Diff line change @@ -827,6 +827,13 @@ let add_function_declarations (file: Cil.file): unit =
827827 let globals = upto_last_type @ fun_decls @ non_types @ functions in
828828 file.globals < - globals
829829
830+ (* * Sync formal parameter attributes back to function types for correct CIL printing *)
831+ let sync_formals file =
832+ iterGlobals file (function
833+ | GFun (fd , _ ) -> setFormals fd fd.sformals
834+ | _ -> ()
835+ )
836+
830837
831838(* * Special index expression for some unknown index.
832839 Weakly updates array in assignment.
You can’t perform that action at this time.
0 commit comments