Questions tagged [smt-lib]

27 questions
0
votes
1 answer

smtlib not send email to email address from column list of pandas dataframe

Dears I have a Code Connect to Oracle DB, get query as Daraframe and send email to receiver that exist in a column As I Test When I set test_reciver argument to an email address test_reciver Email received but when I set (email Receiver) to the…
0
votes
1 answer

Parsing SMTLIB using the Z3 C API without losing `push`, `pop` and `check-sat` commands

I'm using the Z3_parse_smtlib2_string function from the Z3 C API (via Haskell's Z3 lib) to parse an SMTLIB file and apply some tactics to simplify its content, however I notice that any push, pop and check-sat commands appear to be swallowed by this…
0
votes
1 answer

How do I create additional constraints from a model obtained by a solver in z3 Python API?

Once I have a constraint problem, I would like to see if it is satisfiable. Based on the returned model (when it is sat) I would like to add assertions and then run the solver again. However, it seems like I am misunderstanding some of the…
julian
  • 73
  • 7
0
votes
1 answer

How can I define a function in z3 Python API since the new SMT-LIB standard?

The new SMT-LIB standard allows for a function defintion command of the form: (define-fun f ((x1 σ1) · · · (xn σn)) σ t) The spec clarifies that this is semantically equivalent to (declare-fun f (σ1 · · · σn) σ) (assert (forall ((x1 σ1) · · · (xn…
julian
  • 73
  • 7
0
votes
1 answer

Is there any templating engine for smtlib2 (alternatively z3)?

I was wondering if there are is any way to represent an smtlib2 formula as a template. For instance: (declare-fun b () (_ BitVec 16)) (declare-fun a () (_ BitVec 8)) (declare-fun c () (_ BitVec 32)) (assert (= c (bvor ((_ zero_extend 24) a) ((_…
harishankarv
  • 328
  • 2
  • 14
0
votes
1 answer

parametric functions in smtlib

I understand that there is a way to declare parametric datatypes in SMTLIB. Is there a way to define a function that takes in such type? For instance the standard doc has: ( declare - datatypes ( ( Pair 2) ) ( ( par ( X Y ) ( ( pair ( first X ) (…
JRR
  • 6,014
  • 6
  • 39
  • 59
0
votes
1 answer

Is it possible to declare a function sort in smtlib?

For example, $ z3 -in (declare-fun f (Int Real) Int) (assert (= f f)) (check-sat) sat This is OK. However, I'd like to qualify it by as? $ z3 -in (declare-fun f (Int Real) Int) (assert (= (as f ???) (as f ???))) (check-sat) sat What should I fill…
chansey
  • 1,266
  • 9
  • 20
0
votes
1 answer

Modeling nested tuples / sequences in z3

I am currently constructing a symbolic execution engine for a small subset of Python. The most complicated data structure supported by this subset are arbitrarily nested tuples, i.e., you can write something like x = (1, 2, (3, 4), 5). In my SE…
dsteinhoefel
  • 688
  • 4
  • 13
0
votes
2 answers

How to use tuples in SMT-lib?

I am quite sure that it should be possible to describe tuples using SMT-lib syntax, especially for the Z3 solver. However, I can't really find a way of doing so. The only thing I found is this documentation page, but I don't get how to use it in z3…
radrow
  • 6,419
  • 4
  • 26
  • 53
0
votes
1 answer

Print SMTLib constraints to stdout in PySMT

I have some problem encoded using PySMT APIs. PySMT's GitHub page shows an example about using any SMTLib compliant solver with PySMT. It says that PySMT will give the problem to solver in stdin. But I can't find any straightforward way of printing…
Samvid Mistry
  • 783
  • 1
  • 8
  • 14
-1
votes
1 answer

How to subtitute the cat command in a bash file?

I'm working in testing my smt model using different solvers. In this moment I have the file .smt2 which contains the instruction of a model converted in smtlib. I have created a file .sh which implements the linear search in order to test my model…
1
2