Skip to content

Commit

Permalink
Automatically set cil.addNestedScopeAttr in autoTune when running `…
Browse files Browse the repository at this point in the history
…memOutOfBounds`
  • Loading branch information
mrstanb committed Oct 3, 2023
1 parent 003b814 commit ac7dd71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/autoTune.ml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ let focusOnSpecification () =
enableAnalyses uafAna
| ValidDeref -> (* Enable the memOutOfBounds analysis *)
let memOobAna = ["memOutOfBounds"] in
print_endline "Setting \"cil.addNestedScopeAttr\" to true";
set_bool "cil.addNestedScopeAttr" true;
print_endline @@ "Specification: ValidDeref -> enabling memOutOfBounds analysis \"" ^ (String.concat ", " memOobAna) ^ "\"";
enableAnalyses memOobAna
| ValidMemtrack
Expand Down

0 comments on commit ac7dd71

Please sign in to comment.