summaryrefslogtreecommitdiff
path: root/src/constraint.mli
blob: 3fb3d2f66f25b20b5410ede60f5c874207910496 (plain)
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
type nexp
type t

type smt_result = Unknown of t list | Unsat of t
       
val call_z3 : t -> smt_result

val string_of : t -> string
                                           
val implies : t -> t -> t
val conj : t -> t -> t
val disj : t -> t -> t
val negate : t -> t
val branch : t list -> t
val literal : bool -> t

val lt : nexp -> nexp -> t
val lteq : nexp -> nexp -> t
val gt : nexp -> nexp -> t
val gteq : nexp -> nexp -> t
val eq : nexp -> nexp -> t
val neq : nexp -> nexp -> t

val pow2 : nexp -> nexp
val add : nexp -> nexp -> nexp
val sub : nexp -> nexp -> nexp
val mult : nexp -> nexp -> nexp

val constant : Big_int.big_int -> nexp
val variable : int -> nexp