Skip to content

Commit

Permalink
Added missing test file for Cadical interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jrh13 committed Jun 27, 2024
1 parent 1681896 commit 27f8d1c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Cadical/test.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(* ========================================================================= *)
(* Test the Cadical interface on a set of (relatively easy) tautologies. *)
(* ========================================================================= *)

needs "Minisat/taut.ml";;

let TEST_TAUT TAUTCHECKER p =
let th = time TAUTCHECKER p in
if hyp th = [] && concl th = p
then true else failwith "Wrong theorem";;

map (fun (p,s) -> print_string("Attempting "^s); print_newline();
s,TEST_TAUT CADICAL_PROVE p)
all_taut;;

0 comments on commit 27f8d1c

Please sign in to comment.