Skip to content

Commit

Permalink
Extract Lattice to goblint_domain dune library
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Dec 6, 2023
1 parent a4f9689 commit 19bcd3a
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/common/common.mld
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ Options
{1 Domains}
{!modules:
Printable
Lattice
}

{2 Analysis-specific}
Expand Down
9 changes: 9 additions & 0 deletions src/domain/domain.mld
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{0 Library goblint.domain}
This library is unwrapped and provides the following top-level modules.
For better context, see {!Goblint_lib} which also documents these modules.


{1 Domains}
{!modules:
Lattice
}
19 changes: 19 additions & 0 deletions src/domain/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
(include_subdirs unqualified)

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

(documentation)
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_common
(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_common goblint_domain
; 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 @@ -10,6 +10,9 @@ This library currently contains the majority of Goblint and is in the process of
{2 Library goblint.common}
This {{!page-common}unwrapped library} contains various common modules extracted from {!Goblint_lib}.

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


{1 Library extensions}
The following libraries provide extensions to other OCaml libraries.
Expand Down

0 comments on commit 19bcd3a

Please sign in to comment.