Comments (2)
My understanding is that, if the second-rightmost bit is set (which includes 2
and 3
), the value is considered undefined. If you look at the ==
operator,
bool operator == (lbool b) const {
return ( (b.value & 2) & (value & 2) ) // (1)
|
( !(b.value & 2) & (value == b.value) ); // (2)
}
(1): Are they both undefined? Then yes, they are equal.
(2): Is b
defined (i.e., either true or false)? Then check if the rightmost bits are same (i.e., check if both bits say they are 0 (true) or 1 (false)).
Then all the &&
outputs make sense.
from minisat.
Ah, so it is more about the bit setting than the actual value? Interesting... As mentioned in the email correspondence, I think that should be commented somewhere (or unit tested ;-)).
Thank you very much for the response.
Kind regards,
Albert
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
- 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.