Skip to content

Commit

Permalink
NonlinWork: added support for mod
Browse files Browse the repository at this point in the history
  • Loading branch information
BritikovKI committed Nov 4, 2024
1 parent d3946a7 commit c0605cd
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/regression/base/arithmetic/miniexample10.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(set-logic QF_LIA)
(declare-fun x () Int)
(define-fun uninterp_mul ((a Int) (b Int)) Int (* 2 a b))
(assert (= (uninterp_mul 5 x) 10))
(check-sat)
(get-model)
(exit)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sat
(
(define-fun x () Int
1)
)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(error "Nonlinear operations in the formula: (mod x y)")

sat
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unsat
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sat
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(error "Nonlinear operations in the formula: (mod 5 x)")

sat

0 comments on commit c0605cd

Please sign in to comment.