Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 698566
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +3 lines)
Line  Link Here
0
-- a/core/SolverTypes.h
0
++ b/core/SolverTypes.h
Lines 52-58 Link Here
52
    int     x;
52
    int     x;
53
53
54
    // Use this as a constructor:
54
    // Use this as a constructor:
55
    friend Lit mkLit(Var var, bool sign = false);
55
    friend Lit mkLit(Var var, bool sign);
56
56
57
    bool operator == (Lit p) const { return x == p.x; }
57
    bool operator == (Lit p) const { return x == p.x; }
58
    bool operator != (Lit p) const { return x != p.x; }
58
    bool operator != (Lit p) const { return x != p.x; }
Lines 61-66 Link Here
61
61
62
62
63
inline  Lit  mkLit     (Var var, bool sign) { Lit p; p.x = var + var + (int)sign; return p; }
63
inline  Lit  mkLit     (Var var, bool sign = false) { Lit p; p.x = var + var + (int)sign; return p; }
64
inline  Lit  operator ~(Lit p)              { Lit q; q.x = p.x ^ 1; return q; }
64
inline  Lit  operator ~(Lit p)              { Lit q; q.x = p.x ^ 1; return q; }
65
inline  Lit  operator ^(Lit p, bool b)      { Lit q; q.x = p.x ^ (unsigned int)b; return q; }
65
inline  Lit  operator ^(Lit p, bool b)      { Lit q; q.x = p.x ^ (unsigned int)b; return q; }
66
inline  bool sign      (Lit p)              { return p.x & 1; }
66
inline  bool sign      (Lit p)              { return p.x & 1; }

Return to bug 698566