Comments (1)
I am bit by this right now. Here's a small example triggering the assertion.
#include <minisat/core/Solver.h>
#include <minisat/simp/SimpSolver.h>
using namespace std;
int main(int argc, char *argv[])
{
Minisat::SimpSolver solver;
solver.newVar();
solver.newVar();
solver.newVar();
solver.newVar();
solver.newVar();
{
Minisat::vec<Minisat::Lit> clause_1;
Minisat::Lit a = Minisat::mkLit(2,true);
clause_1.push(a);
Minisat::Lit b = Minisat::mkLit(3,true);
clause_1.push(b);
Minisat::Lit c = Minisat::mkLit(4,true);
clause_1.push(c);
solver.addClause(clause_1);
}
{
Minisat::vec<Minisat::Lit> clause_1;
Minisat::Lit a = Minisat::mkLit(2,true);
clause_1.push(a);
Minisat::Lit b = Minisat::mkLit(3,true);
clause_1.push(b);
Minisat::Lit c = Minisat::mkLit(4,false);
clause_1.push(c);
solver.addClause(clause_1);
}
{
Minisat::vec<Minisat::Lit> clause_1;
Minisat::Lit a = Minisat::mkLit(2,true);
clause_1.push(a);
Minisat::Lit b = Minisat::mkLit(3,false);
clause_1.push(b);
Minisat::Lit c = Minisat::mkLit(4,true);
clause_1.push(c);
solver.addClause(clause_1);
}
{
Minisat::vec<Minisat::Lit> clause_1;
Minisat::Lit a = Minisat::mkLit(2,true);
clause_1.push(a);
Minisat::Lit b = Minisat::mkLit(3,false);
clause_1.push(b);
Minisat::Lit c = Minisat::mkLit(4,false);
clause_1.push(c);
solver.addClause(clause_1);
}
{
Minisat::vec<Minisat::Lit> clause_1;
Minisat::Lit a = Minisat::mkLit(2,false);
clause_1.push(a);
Minisat::Lit b = Minisat::mkLit(3,true);
clause_1.push(b);
Minisat::Lit c = Minisat::mkLit(4,true);
clause_1.push(c);
solver.addClause(clause_1);
}
{
Minisat::vec<Minisat::Lit> clause_1;
Minisat::Lit a = Minisat::mkLit(2,false);
clause_1.push(a);
Minisat::Lit b = Minisat::mkLit(3,true);
clause_1.push(b);
Minisat::Lit c = Minisat::mkLit(4,false);
clause_1.push(c);
solver.addClause(clause_1);
}
{
Minisat::vec<Minisat::Lit> clause_1;
Minisat::Lit a = Minisat::mkLit(2,false);
clause_1.push(a);
Minisat::Lit b = Minisat::mkLit(3,false);
clause_1.push(b);
Minisat::Lit c = Minisat::mkLit(4,true);
clause_1.push(c);
solver.addClause(clause_1);
}
{
Minisat::vec<Minisat::Lit> clause_1;
Minisat::Lit a = Minisat::mkLit(2,false);
clause_1.push(a);
Minisat::Lit b = Minisat::mkLit(3,false);
clause_1.push(b);
Minisat::Lit c = Minisat::mkLit(4,false);
clause_1.push(c);
solver.addClause(clause_1);
}
solver.solve();
return 0;
}
from minisat.
Related Issues (20)
- Reserved user defined literal: Space needed between string and PRIi64 token HOT 1
- Running minisat on visual studio (windows)
- Declaration of mkLit breaks compilation on OS X (with clang-503.0.40) HOT 5
- Bug caught by SWDiA5BY authors? HOT 3
- Minor logic errors in simplification HOT 11
- Async interrupt should not work
- Compilation bug with clang 3.4 HOT 4
- Asymmetric branching skips clauses HOT 1
- Compiling problem when using API with newer g++ version HOT 1
- Understanding Question HOT 2
- unexpected results running minisat on SATLIB benchmark tests HOT 2
- --soname linker error HOT 1
- Read-only file system HOT 1
- Find a solution that contains as few values assigned to be true as possible. HOT 7
- Correct the compiler warnings HOT 1
- what is cnf-file? HOT 1
- error: friend declaration of 'Minisat::Lit mkLit(Minisat::Var, bool)' specifies default arguments and isn't a definition HOT 2
- --version HOT 1
- The way Minisat actually solves CNF clauses
- Windows binary
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minisat.