Skip to content

Commit

Permalink
test(nra): add dzufferey_01
Browse files Browse the repository at this point in the history
  • Loading branch information
soonhokong committed Mar 11, 2015
1 parent 0d28894 commit ef65b34
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/tests/nra/dzufferey_01.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
(set-option :precision 0.1)
(set-logic QF_NRA)
(declare-fun base.dx_dt () Real)
(declare-fun base.q_a () Real)
(declare-fun base.q_a_dt () Real)
(declare-fun base.q_k () Real)
(declare-fun base.q_k_dt () Real)

;a solution
(assert (= base.dx_dt 40.0))
(assert (= base.q_a_dt 0.0))
(assert (= base.q_k_dt 0.0))

;constraints
(assert (= base.q_a 1.0))
(assert (= base.q_k 0.0))
(assert
(=
40.0
(+
(* 120.0 (^ base.q_k 3.0) base.q_k_dt)
(* 120.0 (^ base.q_a 2.0) base.q_k base.q_k_dt)
(* 120.0 base.q_a base.q_a_dt (^ base.q_k 2.0))
(* (- 0.0 1.0) base.dx_dt (^ base.q_k 2.0))
(* 120.0 (^ base.q_a 3.0) base.q_a_dt)
(* base.dx_dt (^ base.q_a 2.0))
)
)
)

(check-sat)
(exit)
1 change: 1 addition & 0 deletions src/tests/nra/dzufferey_01.smt2.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sat

0 comments on commit ef65b34

Please sign in to comment.