mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +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
36
src/util/lbool.cpp
Normal file
36
src/util/lbool.cpp
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*++
|
||||
Copyright (c) 2006 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
lbool.cpp
|
||||
|
||||
Abstract:
|
||||
|
||||
<abstract>
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2008-02-08.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#include"lbool.h"
|
||||
|
||||
std::ostream & operator<<(std::ostream & out, lbool b) {
|
||||
switch(b) {
|
||||
case l_false: return out << "l_false";
|
||||
case l_true: return out << "l_true";
|
||||
default: return out << "l_undef";
|
||||
}
|
||||
}
|
||||
|
||||
char const * to_sat_str(lbool l) {
|
||||
switch (l) {
|
||||
case l_false: return "unsatisfiable";
|
||||
case l_true: return "satisfiable";
|
||||
default: return "unknown";
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue