diff options
Diffstat (limited to 'Assignment2/src/Z3.dcl')
-rw-r--r-- | Assignment2/src/Z3.dcl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Assignment2/src/Z3.dcl b/Assignment2/src/Z3.dcl index 0f636f2..5cff893 100644 --- a/Assignment2/src/Z3.dcl +++ b/Assignment2/src/Z3.dcl @@ -4,11 +4,16 @@ from System.Process import :: ProcessHandle, :: ProcessIO :: Z3 +:: Satisfaction + = Sat + | Unsat + | Unknown + startZ3 :: !*World -> (!Z3, !*World) addAssert :: !Z3 !String !*World -> *World addMinimize :: !Z3 !String !*World -> *World addVariable :: !Z3 !String !String !*World -> *World -checkSat :: !Z3 !*World -> (!Bool, !*World) +checkSat :: !Z3 !*World -> (!Satisfaction, !*World) // Note: getModel terminates z3 getModel :: !Z3 !*World -> (!String, !*World) |