Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion error at SimpleAPI.scala:4231 #17

Open
rainoftime opened this issue Sep 24, 2020 · 0 comments
Open

Assertion error at SimpleAPI.scala:4231 #17

rainoftime opened this issue Sep 24, 2020 · 0 comments
Labels
issues with princess Issue not due to OSTRICH, but the underlying SMT solver

Comments

@rainoftime
Copy link

Hi, for the following formula
ostrich 2b3eb9b

(set-logic LRA)

(declare-fun x () Real)
(assert (forall ((y Real)) (=> (> y 0) (>= y x))))
(check-sat)
(set-option :regular-output-channel "/dev/null")
(get-model)
(get-value (x (+ x 10)))
(exit)
sat
 unsupported
 (model
   (define-fun x () Real (/ 0 1))
 )
 error
 java.lang.AssertionError: assertion failed: Unexpected new symbols or axioms. This might be due to theories not yet loaded in SimpleAPI, consider adding them explicitly using addTheory(...)
 	at ap.SimpleAPI.ap$SimpleAPI$$toInternalNoAxioms(SimpleAPI.scala:4231)
 	at ap.SimpleAPI.reduceTerm(SimpleAPI.scala:3458)
 	at ap.SimpleAPI.evalHelp(SimpleAPI.scala:3282)
 	at ap.SimpleAPI.evalToTerm(SimpleAPI.scala:3591)
 	at ap.parser.SMTParser2InputAbsy$$anonfun$41$$anonfun$apply$5.apply(SMTParser2InputAbsy.scala:1555)
 	at ap.parser.SMTParser2InputAbsy$$anonfun$41$$anonfun$apply$5.apply(SMTParser2InputAbsy.scala:1550)
 	at scala.collection.immutable.List.map(List.scala:288)
 	at ap.parser.SMTParser2InputAbsy$$anonfun$41.apply(SMTParser2InputAbsy.scala:1550)
 	at ap.parser.SMTParser2InputAbsy$$anonfun$41.apply(SMTParser2InputAbsy.scala:1550)
 	at ap.SimpleAPI.withTimeout(SimpleAPI.scala:686)
 	at ap.parser.SMTParser2InputAbsy.ap$parser$SMTParser2InputAbsy$$apply(SMTParser2InputAbsy.scala:1549)
 	at ap.parser.SMTParser2InputAbsy$$anon$1.commandHook(SMTParser2InputAbsy.scala:536)
 	at ap.parser.smtlib.CUP$parser$actions.CUP$parser$do_action(parser.java:1289)
 	at ap.parser.smtlib.parser.do_action(parser.java:419)
 	at java_cup.runtime.lr_parser.parse(lr_parser.java:584)
 	at ap.parser.smtlib.parser.pScriptC(parser.java:441)
 	at ap.parser.SMTParser2InputAbsy.processIncrementally(SMTParser2InputAbsy.scala:548)
 	at ap.CmdlMain$$anonfun$7.apply(CmdlMain.scala:568)
 	at ap.CmdlMain$$anonfun$7.apply(CmdlMain.scala:566)
 	at ap.SimpleAPI$.withProver(SimpleAPI.scala:169)
 	at ap.CmdlMain$.proveMultiSMT(CmdlMain.scala:566)
 	at ap.CmdlMain$.proveProblems(CmdlMain.scala:598)
 	at ap.CmdlMain$$anonfun$doMain$2.apply(CmdlMain.scala:934)
 	at ap.CmdlMain$$anonfun$doMain$2.apply(CmdlMain.scala:932)
 	at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
 	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
 	at ap.CmdlMain$.doMain(CmdlMain.scala:932)
 	at ap.CmdlMain$.main(CmdlMain.scala:882)
 	at ostrich.OstrichMain$.main(OstrichMain.scala:37)
 	at ostrich.OstrichMain.main(OstrichMain.scala)

@pruemmer pruemmer added the issues with princess Issue not due to OSTRICH, but the underlying SMT solver label Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issues with princess Issue not due to OSTRICH, but the underlying SMT solver
Projects
None yet
Development

No branches or pull requests

2 participants