Skip to content

Commit

Permalink
set also for meta property
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Oct 3, 2023
1 parent 500a444 commit c9a846b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/autoTune.ml
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,10 @@ let focusOnSpecification () =
print_endline @@ "Specification: ValidMemtrack and ValidMemcleanup -> enabling memLeak analysis \"" ^ (String.concat ", " memLeakAna) ^ "\"";
enableAnalyses memLeakAna
| MemorySafety -> (* TODO: This is a temporary solution for the memory safety category *)
let memSafetyAnas = ["memOutOfBounds"; "memLeak"; "useAfterFree";] in
enableAnalyses memSafetyAnas
(print_endline "Setting \"cil.addNestedScopeAttr\" to true";
set_bool "cil.addNestedScopeAttr" true;
let memSafetyAnas = ["memOutOfBounds"; "memLeak"; "useAfterFree";] in
enableAnalyses memSafetyAnas)

(*Detect enumerations and enable the "ana.int.enums" option*)
exception EnumFound
Expand Down

0 comments on commit c9a846b

Please sign in to comment.