Skip to content

Commit

Permalink
Use autotune.activated termination as separate switch whether termina…
Browse files Browse the repository at this point in the history
…tion analysis should be activated (instead of using specification).
  • Loading branch information
jerhard committed Nov 19, 2023
1 parent 0652213 commit 9d8629d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions conf/svcomp.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
"wideningThresholds",
"loopUnrollHeuristic",
"memsafetySpecification",
"termination",
"specification"
"termination"
]
}
},
Expand Down
3 changes: 3 additions & 0 deletions src/autoTune.ml
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@ let isTerminationTask () = List.mem Svcomp.Specification.Termination (Svcomp.Spe
let specificationIsActivated () =
isActivated "specification" && get_string "ana.specification" <> ""

let specificationTerminationIsActivated () =
isActivated "termination"

let chooseConfig file =
let factors = collectFactors visitCilFileSameGlobals file in
let fileCompplexity = estimateComplexity factors file in
Expand Down
2 changes: 1 addition & 1 deletion src/goblint.ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let main () =
print_endline GobSys.command_line;
);
(* When analyzing a termination specification, activate the termination analysis before pre-processing. *)
if get_bool "ana.autotune.enabled" && AutoTune.specificationIsActivated () then AutoTune.focusOnTermination ();
if get_bool "ana.autotune.enabled" && AutoTune.specificationTerminationIsActivated () then AutoTune.focusOnTermination ();
let file = lazy (Fun.protect ~finally:GoblintDir.finalize preprocess_parse_merge) in
if get_bool "server.enabled" then (
let file =
Expand Down

0 comments on commit 9d8629d

Please sign in to comment.