Skip to content

Commit

Permalink
Merge branch 'master' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
wannesm committed Jun 14, 2024
2 parents 59eb018 + 6b6239e commit a7775d4
Show file tree
Hide file tree
Showing 11 changed files with 2,288 additions and 4,974 deletions.
4 changes: 2 additions & 2 deletions examples/wmc-1.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from pathlib import Path
import math
from pysdd.sdd import SddManager, Vtree, WmcManager
from pysdd.sdd import SddManager, Vtree


here = Path(__file__).parent
Expand All @@ -15,6 +15,7 @@ def main():
root = sdd.read_cnf_file(bytes(here / "input" / "simple.cnf"))
# For DNF functions use `read_dnf_file`
# If the vtree is not given, you can also use 'from_cnf_file`
sdd.auto_gc_and_minimize_off()

# Model Counting
wmc = root.wmc(log_mode=True)
Expand All @@ -41,4 +42,3 @@ def main():

if __name__ == "__main__":
main()

4,506 changes: 2,272 additions & 2,234 deletions notebooks/examples.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pysdd/compiler_c.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cdef extern from "compiler.h":
int post_search # post-compilation search
int verbose # print manager
ctypedef struct Fnf:
long var_count;
long long var_count;
sddapi_c.SddSize litset_count;
ctypedef Fnf Cnf;
ctypedef Fnf Dnf;
Expand Down
133 changes: 0 additions & 133 deletions pysdd/lib/weight_optimization/include/arithmetic_ansi.h

This file was deleted.

Loading

0 comments on commit a7775d4

Please sign in to comment.