Crates.io | iascar |
lib.rs | iascar |
version | 0.2.1 |
source | src |
created_at | 2023-10-19 16:15:17.316556 |
updated_at | 2024-02-21 15:25:06.417141 |
description | iascar - incremental answer set count with anytime refinement |
homepage | |
repository | https://github.com/drwadu/iascar |
max_upload_size | |
id | 1007956 |
size | 86,812 |
iascar is a propositional model counter tailored toward frequent counting under assumptions. The counter operates on smooth deterministic decomposable negation normal forms (sd-DNNFs) or so called compressed counting graphs (CCGs).
Find more background in https://doi.org/10.48550/arXiv.2311.07233.
cargo install iascar
cargo build --release --features seq
iascar -com -lp example.lp -cnf example.lp.as.cnf -nnf example.lp.as.cnf.nnf > example.as.ccg
iascar -com -lp example.lp -cnf example.lp.sm.cnf -nnf example.lp.sm.cnf.nnf > example.sm.ccg
iascar -ccg -in example.as.ccg
c o a=[]
s SATISFIABLE
c s log10-estimate 0.7781512503836436
c s exact arb int 6
iascar -ccg -in example.as.ccg -a -9 10
c o a=[-9, 10]
s SATISFIABLE
c s log10-estimate 0.3010299956639812
c s exact arb int 2
iascar -car -ccg example.sm.ccg -ucs exmaple.ucs -dep 0
c o d=1 n=1 a=[] # depth d, number of unsupported constraints n, assumptions a
c o +par # runs in parallel
c o 0 0.95 # overall log10-count of input ccg
c o 1.00- # amount of unsupported constraints taken into consideration is 100% (1.00)
# and counting stopped on exclusion (-)
s SATISFIABLE
c s log10-estimate 0.7781512503836436
c s exact arb int 6
--supp-models
to count supported models. in particular provide an integer to declare
the max. number of answer sets to count. 0
stands fo no bound. if
you provide no integer, iascar will count up to 1 answer set%
to assumptions where l
stands for a positive literal and ~l
stands for a negative literaliascar -enum -in examples/example.lp 0 %a %~f
c ["0"]
c ["a", "~f"]
s SATISFIABLE
c s exact arb int 1
-nnf -in nnf_path
-nnfarb -in nnf_path