Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed a regression bug created in quantor's configure
Bug introduced in ef458c7.
  • Loading branch information
maelvls committed Jun 9, 2017
commit be396191af65b461176363a66e6e53aeedea990a
5 changes: 2 additions & 3 deletions libs/quantor-3.2/configure
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,9 @@ case "$WORD" in
echo
die "could not get word size"
;;
*)
WORD=unsigned
;;
esac
else
WORD=unsigned
fi
echo " $WORD"
#*------------------------------------------------------------------------*#
Expand Down
16 changes: 13 additions & 3 deletions tests/quantor/test_quantor.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,25 @@ open Qbf.QFormula


(*let a,b,c = (Lit.make 1, Lit.make 2, Lit.make 3)*)
let test_quantor _ =
let test_quantor_false _ =
let a,b,c = (Lit.make 1, Lit.make 2, Lit.make 3) in
let formula = and_l [atom a; atom b; atom c] in
let qcnf = QFormula.cnf (forall [a; b] (prop formula)) in
let qcnf = QFormula.cnf (forall [a; b; c] (prop formula)) in
let _ = solve Quantor.solver qcnf
in ()

(* Maël: I added this test after discovering a bug I had introduced when
modifying the ./configure of quantor (line ~410). *)
let test_quantor_true _ =
let a,b,c = (Lit.make 1, Lit.make 2, Lit.make 3) in
let formula = or_l [atom a; atom b; atom c] in
let qcnf = QFormula.cnf (exists [a; b; c] (prop formula)) in
let _ = solve Quantor.solver qcnf
in ()


let () = run_test_tt_main (
"quantor">:::[
"test_quantor">::(test_quantor);
"test_quantor_false">::(test_quantor_false);
"test_quantor_true">::(test_quantor_true);
])