Giter VIP home page Giter VIP logo

Comments (7)

rlisahuang avatar rlisahuang commented on May 13, 2024 1

All errors are now rendered in the front-end, so examining the errors by hand on the website is feasible

from z3guide.

rlisahuang avatar rlisahuang commented on May 13, 2024 1

Incomplete "Arithmetic" section: looks like you are missing .md suffixes for some files

from z3guide.

rlisahuang avatar rlisahuang commented on May 13, 2024

Snippet cannot be processed => something with syntax error?

eval_smtlib2_string guarantees to return a string, meaning the error messages will be part of stdout if an error occurs. I think we want the syntax errors for debugging/changing the snippets?

from z3guide.

NikolajBjorner avatar NikolajBjorner commented on May 13, 2024

I guess the expectation is that I fix the errors unless it is obvious.
There are other errors that don't require me in the critical loop:

  • I wonder what happend to the "Arithmetic" section. It looks incomplete. It has "Division" but no other subsections.
  • I ended up fixing various low hanging issues. For example, _ should be escaped in markdown mode.
    So overall a lot of quality control left at this point, not considering the new material on Sequences I have been adding today.

from z3guide.

bakkot avatar bakkot commented on May 13, 2024

meaning the error messages will be part of stdout if an error occurs

Note that you can call Z3.get_error_code right after calling Z3.eval_smtlib2_string to determine if there was an error without needing to parse the output, as in console.log('had error?', Z3.get_error_code(ctx) !== Z3_error_code.Z3_OK). You'll need to import Z3_error_code in the same place you import init.

There's also Z3.get_error_msg but unfortunately it will include the rest of the output from eval_smtlib2_string. I haven't checked if this is a bug in the wasm frontend or if that's just what Z3 itself does.

from z3guide.

NikolajBjorner avatar NikolajBjorner commented on May 13, 2024

in smtlib2 mode (where it interprets a string) the errors are printed to the output string. There can be multiple errors.
This is what is relevant to the SMTLIB2 interpreter mode.
Those errors are not accessible from the error code or message.

from z3guide.

NikolajBjorner avatar NikolajBjorner commented on May 13, 2024

close?

from z3guide.

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.