pysmt | pySMT : A library for SMT formulae manipulation | Validation library
kandi X-RAY | pysmt Summary
kandi X-RAY | pysmt Summary
pySMT: A library for SMT formulae manipulation and solving
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse a type .
- Create a generator .
- Substitute a formula .
- Main entry point .
- Evaluate a command .
- Get available solvers .
- Configure an environment .
- Propagate a given formula to a single element .
- Given a conjugate equation .
- Parse command line options .
pysmt Key Features
pysmt Examples and Code Snippets
Community Discussions
Trending Discussions on pysmt
QUESTION
In Z3 solver, I want to represent numbers using fixed point notation and perform arithmetic operations with rounding.
Example: Let's say, X, Y and Z represent fixed point numbers type,
...ANSWER
Answered 2020-Jun-24 at 16:51You can always "request" such a feature at https://github.com/Z3Prover/z3/issues
But SMT solvers in general follow the SMTLib initiative; so unless SMTLib comes up with a "logic" for fixed-point numbers, it's unlikely to be implemented. See here: http://smtlib.cs.uiowa.edu/
There's a discussion forum for SMTLib where you can post your request and ask for guidance: https://groups.google.com/forum/#!forum/smt-lib
Within the current capabilities, however, these kinds of numbers are not supported out of the box. Given that, I'd go with trying to model this "outside" the SMT solver and use the regular integer libraries, but the details of that depend on how much you want to invest and what sorts of problems you want to deal with. (For instance, you can represent fixed-point numbers with two integers, one for the "whole" part and one for the "fraction" part, and do all the arithmetic and rounding-etc. yourself. This can be a lot of work, but probably is your best bet given there's no direct support for these numbers currently.)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pysmt
You can use pysmt like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page