Guest User

Untitled

a guest
Aug 14th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. How do I hold and compare values in a Boolean Satisfiability Expression?
  2. for( int i = 0; i < 16; ++i ) // That's 2^4
  3. {
  4. int x1 = i & 1;
  5. int x2 = i & 2;
  6. int x3 = i & 4;
  7. int x4 = i & 8;
  8.  
  9. if( ( x1 || !x2 || !x3 ) && ( x1 || x2 || x4 ) )
  10. ... the expression holds for this combination, store it somewhere ...
  11. }
Add Comment
Please, Sign In to add comment