Skip to content

Commit 1cf3942

Browse files
committed
Make memsafety autotuner enable ana.arrayoob (PR #1201)
#1201 (comment)
1 parent a2a4fa2 commit 1cf3942

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/autoTune.ml

+2
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ let focusOnMemSafetySpecification () =
218218
enableAnalyses uafAna
219219
| ValidDeref -> (* Enable the memOutOfBounds analysis *)
220220
let memOobAna = ["memOutOfBounds"] in
221+
set_bool "ana.arrayoob" true;
221222
print_endline "Setting \"cil.addNestedScopeAttr\" to true";
222223
set_bool "cil.addNestedScopeAttr" true;
223224
print_endline @@ "Specification: ValidDeref -> enabling memOutOfBounds analysis \"" ^ (String.concat ", " memOobAna) ^ "\"";
@@ -232,6 +233,7 @@ let focusOnMemSafetySpecification () =
232233
print_endline @@ "Specification: ValidMemtrack and ValidMemcleanup -> enabling memLeak analysis \"" ^ (String.concat ", " memLeakAna) ^ "\"";
233234
enableAnalyses memLeakAna
234235
| MemorySafety -> (* TODO: This is a temporary solution for the memory safety category *)
236+
set_bool "ana.arrayoob" true;
235237
(print_endline "Setting \"cil.addNestedScopeAttr\" to true";
236238
set_bool "cil.addNestedScopeAttr" true;
237239
if (get_int "ana.malloc.unique_address_count") < 1 then (

0 commit comments

Comments
 (0)