Skip to content

Commit

Permalink
Change Machdep based on SV-COMP architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Sep 24, 2024
1 parent 82d580f commit 917cf7e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/common/util/cilfacade.ml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ let init_options () =
Mergecil.merge_inlines := get_bool "cil.merge.inlines";
Cil.cstd := Cil.cstd_of_string (get_string "cil.cstd");
Cil.gnu89inline := get_bool "cil.gnu89inline";
Cabs2cil.addNestedScopeAttr := get_bool "cil.addNestedScopeAttr"
Cabs2cil.addNestedScopeAttr := get_bool "cil.addNestedScopeAttr";

if get_bool "ana.sv-comp.enabled" then (
let machine = match get_string "exp.architecture" with
| "32bit" -> Machdep.gcc32
| "64bit" -> Machdep.gcc64
| _ -> assert false
in
Machdep.theMachine := Option.get machine
)

let init () =
initCIL ();
Expand Down

0 comments on commit 917cf7e

Please sign in to comment.