Skip to content

question(C/C++ API examples): string to expression conversion on traversing AST #5151

Answered by NikolajBjorner
matu3ba asked this question in Q&A
Discussion options

You must be logged in to vote

I have not fully understood the questions and comments in the post yet so find it somewhat difficult to answer.
It seems there are different expectations.

SMTLIB2 is a standard format for exchanging benchmarks. Z3 supports this format and exposes parsers for benchmarks in this format.
The basic structure of and SMTLIB2 benchmark is a sequence of commands. Each command has an effect on a solver state.
We therefore expose SMTLIB2 parsers for solver objects.

Expression parsing can be built in an indirect way using these commands, but it isn't first class.
I have heard before that users somehow want to create expression strings and parse them into objects, but the need to serialize in and out…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nunoplopes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5150 on April 06, 2021 03:31.