-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathprover.mli
53 lines (40 loc) · 2.35 KB
/
prover.mli
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
(**************************************************************************)
(* *)
(* Cubicle *)
(* *)
(* Copyright (C) 2011-2014 *)
(* *)
(* Sylvain Conchon and Alain Mebsout *)
(* Universite Paris-Sud 11 *)
(* *)
(* *)
(* This file is distributed under the terms of the Apache Software *)
(* License version 2.0 *)
(* *)
(**************************************************************************)
open Types
(** Interface with the SMT solver *)
module SMT : Smt.Solver
(** Instance of the SMT solver *)
val unsafe : Ast.t_system -> Node.t -> unit
(** Checks if the node is directly reachable on init of the system *)
val reached : Hstring.t list -> SAtom.t -> SAtom.t -> unit
(** [reached vars s1 s2] raises [Unsat] if s2 has not been reached *)
val assume_goal : Node.t -> unit
(** Clears the context and assumes a goal formula *)
val assume_node : Node.t -> ArrayAtom.t -> unit
(** [assume_node n a] assumes the negation of a node [n] given in the form of a
renaming [a]; raises [Unsat] if the context becomes unsatisfiable *)
val assume_goal_no_check : Node.t -> unit
(** Same as {!assume_goal but without the solver check} *)
val assume_node_no_check : Node.t -> ArrayAtom.t -> unit
(** Same as {!assume_node but without the solver check} *)
val check_guard : Hstring.t list -> SAtom.t -> SAtom.t -> unit
(** [check_guard vars s g] checks if the guard g is feasible in state [s];
raises [Unsat] if it is not the case *)
val make_literal : Atom.t -> Smt.Formula.t
val make_formula : ArrayAtom.t -> Smt.Formula.t
val make_formula_set : SAtom.t -> Smt.Formula.t
val run : unit -> unit
(** Runs the SMT solver on its current context *)
val assume_goal_nodes : Node.t -> (Node.t * ArrayAtom.t) list -> unit