mirror of
https://github.com/Z3Prover/z3
synced 2025-05-06 07:15:47 +00:00
Reorganizing source code. Created util dir
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
630ba0c675
commit
2c464d413d
153 changed files with 0 additions and 0 deletions
42
lib/lbool.h
42
lib/lbool.h
|
@ -1,42 +0,0 @@
|
|||
/*++
|
||||
Copyright (c) 2006 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
lbool.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Lifted boolean
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2008-02-08.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _LBOOL_H_
|
||||
#define _LBOOL_H_
|
||||
|
||||
#include"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);
|
||||
|
||||
#endif /* _LBOOL_H_ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue