Skip to content

Commit

Permalink
Extract constraint system to goblint_constraint dune library
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Dec 28, 2023
1 parent f97869c commit 07009f0
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 1 deletion.
File renamed without changes.
16 changes: 16 additions & 0 deletions src/constraint/constraint.mld
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{0 Library goblint.constraint}
This library is unwrapped and provides the following top-level modules.
For better context, see {!Goblint_lib} which also documents these modules.


{1 Framework}

{2 Specification}
{!modules:
ConstrSys
}

{2 Results}
{!modules:
VarQuery
}
21 changes: 21 additions & 0 deletions src/constraint/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(include_subdirs no)

(library
(name goblint_constraint)
(public_name goblint.constraint)
(wrapped false) ; TODO: wrap
(libraries
batteries.unthreaded
goblint_std
goblint_common
goblint_domain
goblint-cil)
(flags :standard -open Goblint_std)
(preprocess
(pps
ppx_deriving.std
ppx_deriving_hash
ppx_deriving_yojson))
(instrumentation (backend bisect_ppx)))

(documentation)
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(name goblint_lib)
(public_name goblint.lib)
(modules :standard \ goblint privPrecCompare apronPrecCompare messagesCompare)
(libraries goblint.sites goblint.build-info goblint-cil.all-features batteries.unthreaded qcheck-core.runner sha json-data-encoding jsonrpc cpu arg-complete fpath yaml yaml.unix uuidm goblint_timing catapult goblint_backtrace fileutils goblint_std goblint_config goblint_common goblint_domain goblint_library goblint_incremental goblint_tracing
(libraries goblint.sites goblint.build-info goblint-cil.all-features batteries.unthreaded qcheck-core.runner sha json-data-encoding jsonrpc cpu arg-complete fpath yaml yaml.unix uuidm goblint_timing catapult goblint_backtrace fileutils goblint_std goblint_config goblint_common goblint_domain goblint_constraint goblint_library goblint_incremental goblint_tracing
; Conditionally compile based on whether apron optional dependency is installed or not.
; Alternative dependencies seem like the only way to optionally depend on optional dependencies.
; See: https://dune.readthedocs.io/en/stable/concepts.html#alternative-dependencies.
Expand Down
3 changes: 3 additions & 0 deletions src/index.mld
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ This {{!page-common}unwrapped library} contains various common modules extracted
{2 Library goblint.domain}
This {{!page-domain}unwrapped library} contains various domain modules extracted from {!Goblint_lib}.

{2 Library goblint.constraint}
This {{!page-constraint}unwrapped library} contains various constraint system modules extracted from {!Goblint_lib}.

{2 Library goblint.library}
This {{!page-library}unwrapped library} contains various library specification modules extracted from {!Goblint_lib}.

Expand Down

0 comments on commit 07009f0

Please sign in to comment.