Skip to content

Commit

Permalink
Merge pull request #1447 from goblint/libfuns-final
Browse files Browse the repository at this point in the history
Port all remaining library functions
  • Loading branch information
sim642 authored May 23, 2024
2 parents aae8d90 + 91eca5a commit ac1225a
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 71 deletions.
6 changes: 4 additions & 2 deletions src/config/options.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,8 @@
"zstd",
"pcre",
"zlib",
"liblzma"
"liblzma",
"legacy"
]
},
"default": [
Expand All @@ -1355,7 +1356,8 @@
"glibc",
"linux-userspace",
"goblint",
"ncurses"
"ncurses",
"legacy"
]
}
},
Expand Down
2 changes: 2 additions & 0 deletions src/util/library/libraryDsl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ let f = Access.{ kind = Free; deep = false; }
let f_deep = Access.{ kind = Free; deep = true; }
let s = Access.{ kind = Spawn; deep = false; }
let s_deep = Access.{ kind = Spawn; deep = true; }
let c = Access.{ kind = Spawn; deep = false; } (* TODO: Sound, but very imprecise hack for calls to function pointers given as arguments. *)
let c_deep = Access.{ kind = Spawn; deep = true; }
6 changes: 6 additions & 0 deletions src/util/library/libraryDsl.mli
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,9 @@ val s: LibraryDesc.Access.t
(** Deep {!AccessKind.Spawn} access.
Rarely needed. *)
val s_deep: LibraryDesc.Access.t

(** Shallow {!AccessKind.Spawn} access, substituting function pointer calls for now (TODO). *)
val c: LibraryDesc.Access.t

(** Deep {!AccessKind.Spawn} access, substituting deep function pointer calls for now (TODO) *)
val c_deep: LibraryDesc.Access.t
Loading

0 comments on commit ac1225a

Please sign in to comment.