The claferIG package


Clafer is a powerful (equivalent to first-order predicate logic) yet lightweight structural modeling language. Despite simplicity and conciseness of Clafer, writing correct models remains challenging due to hard-to-predict interactions among all constraints expressed in the model. Clafer instance generator (ClaferIG) is an interactive tool that generates instances and counter examples of concrete clafers in a Clafer model. If the concrete clafers do not have contradicting constraints, the generator produces valid instance data. Otherwise, the generator produces an unsatisfiable core which included all contradicting constraints and generates a counter example by removing one constraint from the core. The generator can potentially produce many instances if the concrete clafers are not fully specialized. The generator produces different instances on-demand. With these capabilities, the instance generator can be used for debugging models: checking the consistency of the model and detecting under- and overconstraining of the model. The instance generator can also be used programmatically via API (the command line and interactive session interfaces only use the API).


Versions0.3.5, 0.3.5,, 0.3.6,, 0.3.7, 0.3.8, 0.3.9, 0.3.10
Dependenciesarray (>=, base (>= && <5), clafer (==0.3.5), claferIG (==0.3.5), cmdargs (>=0.10.5), containers (>=, data-stringmap (>=0.9.1), directory (>=, executable-path (>=0.0.3), filepath (>=, haskeline (>=, HaXml (>=1.24), HUnit (>=, json-builder (>=0.3), mtl (>=2.1.2), parsec (>=3.1.3), process (>=, QuickCheck (>=, string-conversions (>=0.3), test-framework (>=0.8), test-framework-hunit (>=0.3.0), test-framework-quickcheck2 (>=, test-framework-th (>=0.2.4), transformers (>=
AuthorJimmy Liang, Michal Antkiewicz, Luke Michael Brown
Home page
Source repositoryhead: git clone git://
UploadedThu Jan 30 21:07:38 UTC 2014 by mantkiew



Maintainers' corner

For package maintainers and hackage trustees