Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@VincentDerk
Copy link
Contributor

Changes the way the CNF file is parsed.

The previous implementation used a buffer of fixed size causing too long clauses to silently be cut off (#15). This implementation is based on sharpSAT's, going over literals using >> and ifstream.ignore.

I tested it against the long clause file of #15 and it gave the correct model count, nbVars and nbClauses. Also tested exp-testing/bmc-ibm-2.cnf, exp-testing/logistics.a.cnf and a 2bitmax_6.cnf file I had from some benchmarks, and confirmed the model counts, nbVars and nbClauses are still correct. I purposely changed p cnf 252 766 to p cnf 252 and it crashed and warned correctly.

@haz haz merged commit e09c463 into QuMuLab:master Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants