Skip to content

Commit

Permalink
Pin CIL with attr-enumerator fix for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Aug 16, 2024
1 parent b9caf63 commit 0d6d3a8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion goblint.opam
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dev-repo: "git+https://github.com/goblint/analyzer.git"
# also remember to generate/adjust goblint.opam.locked!
available: os-family != "bsd" & os-distribution != "alpine" & (arch != "arm64" | os = "macos")
pin-depends: [
[ "goblint-cil.2.0.4" "git+https://github.com/goblint/cil.git#317e26d48b06d5cdc4acff3df1a6824587052b53" ]
[ "goblint-cil.2.0.4" "git+https://github.com/goblint/cil.git#04b8a45a7d20425c7b6c8abe1ad094abc063922b" ]
]
depexts: [
["libgraph-easy-perl"] {os-distribution = "ubuntu" & with-test}
Expand Down
2 changes: 1 addition & 1 deletion goblint.opam.locked
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ post-messages: [
pin-depends: [
[
"goblint-cil.2.0.4"
"git+https://github.com/goblint/cil.git#317e26d48b06d5cdc4acff3df1a6824587052b53"
"git+https://github.com/goblint/cil.git#04b8a45a7d20425c7b6c8abe1ad094abc063922b"
]
]
depexts: ["libgraph-easy-perl"] {os-distribution = "ubuntu" & with-test}
Expand Down
2 changes: 1 addition & 1 deletion goblint.opam.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# also remember to generate/adjust goblint.opam.locked!
available: os-family != "bsd" & os-distribution != "alpine" & (arch != "arm64" | os = "macos")
pin-depends: [
[ "goblint-cil.2.0.4" "git+https://github.com/goblint/cil.git#317e26d48b06d5cdc4acff3df1a6824587052b53" ]
[ "goblint-cil.2.0.4" "git+https://github.com/goblint/cil.git#04b8a45a7d20425c7b6c8abe1ad094abc063922b" ]
]
depexts: [
["libgraph-easy-perl"] {os-distribution = "ubuntu" & with-test}
Expand Down
2 changes: 1 addition & 1 deletion src/cdomain/value/cdomains/mutexAttrDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let recursive_int = lazy (
let res = ref (Z.of_int 2) in (* Use OS X as the default, it doesn't have the enum *)
GoblintCil.iterGlobals !Cilfacade.current_file (function
| GEnumTag (einfo, _) ->
List.iter (fun (name, exp, _) ->
List.iter (fun (name, _, exp, _) ->
if name = "PTHREAD_MUTEX_RECURSIVE" then
res := Option.get @@ GoblintCil.getInteger exp
) einfo.eitems
Expand Down
4 changes: 2 additions & 2 deletions src/incremental/compareAST.ml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ and eq_typ_acc ?(fun_parameter_name_comparison_enabled: bool = true) (a: typ) (b
if Messages.tracing then Messages.traceu "compareast" "eq_typ_acc %a vs %a" d_type a d_type b;
(r, updated_rename_mapping)

and eq_eitems (a: string * exp * location) (b: string * exp * location) ~(rename_mapping: rename_mapping) ~(acc: (typ * typ) list) = match a, b with
(name1, exp1, _l1), (name2, exp2, _l2) -> (name1 = name2, rename_mapping) &&>> eq_exp exp1 exp2 ~acc
and eq_eitems (a: string * attributes * exp * location) (b: string * attributes * exp * location) ~(rename_mapping: rename_mapping) ~(acc: (typ * typ) list) = match a, b with
(name1, attr1, exp1, _l1), (name2, attr2, exp2, _l2) -> (name1 = name2, rename_mapping) &&>> forward_list_equal (eq_attribute ~acc) attr1 attr2 &&>> eq_exp exp1 exp2 ~acc
(* Ignore location *)

and eq_enuminfo (a: enuminfo) (b: enuminfo) ~(rename_mapping: rename_mapping) ~(acc: (typ * typ) list) =
Expand Down
2 changes: 1 addition & 1 deletion src/witness/witnessUtil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ struct
let typ = TEnum (e, []) in
let name = "enum " ^ ename in
Hashtbl.replace genv name (Cabs2cil.EnvTyp typ, loc);
List.iter (fun (name, exp, loc) ->
List.iter (fun (name, _, exp, loc) ->
Hashtbl.replace genv name (Cabs2cil.EnvEnum (exp, typ), loc)
) eitems
| Cil.GVar (v, _, loc)
Expand Down

0 comments on commit 0d6d3a8

Please sign in to comment.