1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
lbool.h
Abstract:
Lifted boolean
Author:
Leonardo de Moura (leonardo) 2008-02-08.
Revision History:
--*/
#pragma once
#include "util/util.h"
typedef enum { l_false = -1, l_undef, l_true } lbool;
inline lbool operator~(lbool lb) {
return static_cast<lbool>(-static_cast<int>(lb));
}
inline lbool to_lbool(bool b) {
return static_cast<lbool>(static_cast<int>(b)*2-1);
}
std::ostream & operator<<(std::ostream & out, lbool b);
/**
\brief Convert l_true -> satisfiable, l_false -> unsatisfiable, and l_undef -> unknown.
*/
char const * to_sat_str(lbool l);