Skip to content

Commit 78e8ce8

Browse files
authored
Merge pull request #791 from goblint/wrapped-cil
Adapt to wrapped goblint-cil library
2 parents 90f5b06 + 7dbcf3b commit 78e8ce8

File tree

99 files changed

+112
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+112
-67
lines changed

goblint.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ dev-repo: "git+https://github.com/goblint/analyzer.git"
6767
# on `dune build` goblint.opam will be generated from goblint.opam.template and dune-project
6868
# also remember to generate/adjust goblint.opam.locked!
6969
pin-depends: [
70-
[ "goblint-cil.1.8.2" "git+https://github.com/goblint/cil.git#54b0c220a9cea4213ff596eadff877a6ec9b00fb" ]
70+
[ "goblint-cil.1.8.2" "git+https://github.com/goblint/cil.git#1faa2355fd350c503b150e43c4577873928c30d9" ]
7171
# TODO: add back after release, only pinned for optimization (https://github.com/ocaml-ppx/ppx_deriving/pull/252)
7272
[ "ppx_deriving.5.2.1" "git+https://github.com/ocaml-ppx/ppx_deriving.git#0a89b619f94cbbfc3b0fb3255ab4fe5bc77d32d6" ]
7373
# quoter workaround reverted for release, so no pin needed

goblint.opam.locked

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ version: "dev"
120120
pin-depends: [
121121
[
122122
"goblint-cil.1.8.2"
123-
"git+https://github.com/goblint/cil.git#54b0c220a9cea4213ff596eadff877a6ec9b00fb"
123+
"git+https://github.com/goblint/cil.git#1faa2355fd350c503b150e43c4577873928c30d9"
124124
]
125125
[
126126
"apron.v0.9.13"

goblint.opam.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# on `dune build` goblint.opam will be generated from goblint.opam.template and dune-project
22
# also remember to generate/adjust goblint.opam.locked!
33
pin-depends: [
4-
[ "goblint-cil.1.8.2" "git+https://github.com/goblint/cil.git#54b0c220a9cea4213ff596eadff877a6ec9b00fb" ]
4+
[ "goblint-cil.1.8.2" "git+https://github.com/goblint/cil.git#1faa2355fd350c503b150e43c4577873928c30d9" ]
55
# TODO: add back after release, only pinned for optimization (https://github.com/ocaml-ppx/ppx_deriving/pull/252)
66
[ "ppx_deriving.5.2.1" "git+https://github.com/ocaml-ppx/ppx_deriving.git#0a89b619f94cbbfc3b0fb3255ab4fe5bc77d32d6" ]
77
# quoter workaround reverted for release, so no pin needed

src/analyses/basePriv.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
open Cil
1+
open GoblintCil
22
(* Cannot use local module substitutions because ppx_import is still stuck at 4.07 AST: https://github.com/ocaml-ppx/ppx_import/issues/50#issuecomment-775817579. *)
33
(* TODO: try again, because ppx_import is now removed *)
44

src/analyses/baseUtil.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
open Cil
1+
open GoblintCil
22

33
val is_global: Queries.ask -> varinfo -> bool
44
val is_static: varinfo -> bool

src/analyses/libraryDesc.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(** Library function descriptor (specification). *)
2+
module Cil = GoblintCil
23

34
(** Pointer argument access specification. *)
45
module Access =

src/analyses/libraryDsl.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(** Library function descriptor DSL. *)
2+
open GoblintCil
23

34
(** See {!LibraryFunctions} implementation for example usage. *)
45

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
open GoblintCil
2+
13
let effects: (string -> Cil.exp list -> (Cil.lval * _) list option) list ref = ref []
24
let add_effects f = effects := f :: !effects
35
let effects_for fname args = List.filter_map (fun f -> f fname args) !effects
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
(* can't use Base.Main.store b/c of circular build - this is painful... *)
2+
open GoblintCil
3+
24
val add_effects : (string -> Cil.exp list -> (Cil.lval * ValueDomain.Compound.t) list option) -> unit
35
val effects_for : string -> Cil.exp list -> (Cil.lval * ValueDomain.Compound.t) list list

0 commit comments

Comments
 (0)