Giter Club home page Giter Club logo

Comments (5)

hansjoergschurr avatar hansjoergschurr commented on May 15, 2024

Here is a list of things that come to mind:

  • n-ary operators, such as and, applied to only one argument
  • the bitvector operator concat applied to more than two arguments
  • replacement of non-standard *_i bitvector operations with the normal variant (see Z3Prover/z3#1133)
  • Safe integer promotion: applying built-in operators to an integer and a real at the same time is forbidden. For example, (= 5 5.0) is illegal. In those cases, however, the integer can safely be promoted to a real by either using to_real, or adding a .0 suffix.

from dolmen.

Gbury avatar Gbury commented on May 15, 2024

Another example: some problems may contain solver-reserved identifiers, particularly when they are created from the output of some solvers (see e.g. https://clc-gitlab.cs.uiowa.edu:2443/SMT-LIB-benchmarks/QF_BV/-/blob/master/20190429-UltimateAutomizerSvcomp2019/byte_add_1_true-unreach-call_true-no-overflow_true-termination.i_6.smt2 ), it would be useful to be able to parse (and type) them to then print them with correct names.

from dolmen.

hansjoergschurr avatar hansjoergschurr commented on May 15, 2024

Does dolmen produce an error for those? I have some preliminary work on doing large scale back experiments on SMT-LIB and it would be a good opportunity to mark such.

from dolmen.

Gbury avatar Gbury commented on May 15, 2024

It's fairly recent addition indeed: PR #193 made it so that it is an error to use symbols that start with an @ or a .. Indeed, the smtlib specification states that such identifiers are reserved for solver use, and therefore should not appear in input scripts.

It might be a problem for problems generated by solver-like programs indeed, and I should probably try and run a check on the whole smtlib to see whether this is a frequent occurrence. That being said, I think that such generated problems should respect the spec, since solvers might assume that all of the identifiers starting with an @ or a . are free for them to use, and thus problems using these identifiers might result in name collisions.

from dolmen.

Gbury avatar Gbury commented on May 15, 2024

In the meantime, and depending on how many problems in the smtlib use such solver-reserved identifiers, I'll consider changing the error into a warning, which would be fatal by default, but that could be turned off/not fatal if wanted/required by users.

from dolmen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.