Skip to content

Commit 0bed7ac

Browse files
michael-schwarzsim642
authored andcommitted
Also sync sformals back after selectArrayDomains
1 parent 67f1cf3 commit 0bed7ac

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/autoTune.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,11 @@ end
320320
let selectArrayDomains file =
321321
set_bool "annotation.goblint_array_domain" true;
322322
let thisVisitor = new addTypeAttributeVisitor in
323-
ignore (visitCilFileSameGlobals thisVisitor file)
323+
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+
| _ -> ())
324328
(*small unrolled loops also set domain of accessed arrays to unroll, at the point where loops are unrolled*)
325329

326330

0 commit comments

Comments
 (0)