mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
37 lines
590 B
C++
37 lines
590 B
C++
/*++
|
|
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";
|
|
}
|
|
}
|
|
|