We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, str.<= in Ostrich does not work quite as I expected. Here is an example program:
str.<=
import ap.theories.strings.StringTheory import ap.SimpleAPI import SimpleAPI.ProverStatus import ap.parser._ import ap.theories.strings.SeqStringTheory import ap.util.Debug import ostrich.{OstrichStringTheory, OFlags} import org.scalacheck.{Arbitrary, Gen, Properties} import org.scalacheck.Prop._ object Bug3 extends Properties("Bug3") { Debug enableAllAssertions true val stringTheory = new OstrichStringTheory(List(), OFlags()) import stringTheory._ import IExpression._ property("lessThan") = SimpleAPI.withProver(enableAssert = true) { p => import p._ !!(str_<=("a", "b")) ??? == ProverStatus.Sat } property("lessOrEqual") = SimpleAPI.withProver(enableAssert = true) { p => import p._ !!(str_<=("a", "a")) ??? == ProverStatus.Sat } }
When I run the tests, lessThan passes, but lessOrEqual fails. I was expecting them both to pass as str.<= is reflexiv in the SMT-LIB standard.
lessThan
lessOrEqual
Is this an intentional change or am I just doing something wrong here?
The text was updated successfully, but these errors were encountered:
Thanks! This seems to have fixed it
Sorry, something went wrong.
Princess: Remove workaround for a bug in Ostrich. The str.<= operatio…
c83063e
…n was not reflexive and returned `false` if both arguments are the same. This has reported in uuverifiers/ostrich#89 and is now fixed
No branches or pull requests
Hello,
str.<=
in Ostrich does not work quite as I expected. Here is an example program:When I run the tests,
lessThan
passes, butlessOrEqual
fails. I was expecting them both to pass asstr.<=
is reflexiv in the SMT-LIB standard.Is this an intentional change or am I just doing something wrong here?
The text was updated successfully, but these errors were encountered: