Skip to content

Commit

Permalink
Rewording tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Oct 3, 2023
1 parent 37db150 commit c24af5b
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/lib/frontend/frontend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module Make(SAT : Sat_solver_sig.S) : S with type sat_env = SAT.t = struct
match SAT.get_model env with
| None ->
Printer.print_fmt (Options.Output.get_fmt_diagnostic ())
"@[<v 0>It seems that no model has been computed so \
"@[<v 0>; It seems that no model has been computed so \
far. You may need to change your model generation strategy \
or to increase your timeouts. Returned unknown reason = %s@]" s

Expand Down
68 changes: 55 additions & 13 deletions tests/dune.inc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
(=> (and (<= 0 p) (< p q) (<= q 10)) (<= (select a p) (select a q))))))
(check-sat)
(get-model)
; (get-model) should fail because the problem is UNSAT.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
(error "Invalid (get-info :reason-unknown)")

unknown
unsupported
Expand All @@ -10,4 +9,3 @@ unsupported
(:name "Alt-Ergo")
(:reason-unknown Incomplete)
(:version dev)
unsupported
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
(set-logic ALL)

(declare-const x Int)
(declare-const y Int)

(assert (= (* x x) 4))

(get-info :reason-unknown)
(check-sat)
(get-info :all-statistics)
(get-info :assertion-stack-levels)
(get-info :authors)
(get-info :error-behavior)
(get-info :name)
(get-info :reason-unknown)
(get-info :version)
(get-info :foo)
(get-info :version)
1 change: 1 addition & 0 deletions tests/smtlib/testfile-get-info2.err.dolmen.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(error "Invalid (get-info :reason-unknown)")
8 changes: 8 additions & 0 deletions tests/smtlib/testfile-get-info2.err.dolmen.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(set-logic ALL)

(declare-const x Int)

(assert (= (* x x) 4))

(get-info :reason-unknown)
(check-sat)
1 change: 1 addition & 0 deletions tests/smtlib/testfile-get-info3.dolmen.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unsupported
1 change: 1 addition & 0 deletions tests/smtlib/testfile-get-info3.dolmen.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(get-info :foo)

0 comments on commit c24af5b

Please sign in to comment.