Scan your whole stack
Are you using pysmt?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.11.0.dev2115
pysmt was last scanned on 26 Nov 2026 at version 0.11.0.dev2115. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.11.0.dev2115 LATEST | 26 Nov 2026 | No rules fired |
| 0.11.0.dev2111 | 26 Nov 2026 | No rules fired |
| 0.11.0.dev2105 | 25 Nov 2026 | No rules fired |
| 0.11.0.dev2100 | 25 Nov 2026 | Not shown |
| 0.11.0.dev2091 | 25 Nov 2026 | Not shown |
Findings for v0.11.0.dev2115. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.11.0.dev2115; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
.. image:: https://github.com/pysmt/pysmt/actions/workflows/build-and-release.yml/badge.svg?branch=master :target: https://github.com/pysmt/pysmt/actions :alt: CI Status
.. image:: https://coveralls.io/repos/github/pysmt/pysmt/badge.svg :target: https://coveralls.io/github/pysmt/pysmt :alt: Coverage
.. image:: https://readthedocs.org/projects/pysmt/badge/?version=latest :target: https://pysmt.readthedocs.io/en/latest/ :alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/pysmt.svg :target: https://pypi.python.org/pypi/pySMT/ :alt: Latest PyPI version
.. image:: https://img.shields.io/pypi/l/pysmt.svg :target: /LICENSE :alt: Apache License
.. image:: https://img.shields.io/badge/Browse%20the%20Archive-Google%20groups-orange.svg :target: https://groups.google.com/d/forum/pysmt :alt: Google groups
pySMT makes working with Satisfiability Modulo Theory simple:
.. image:: https://cdn.rawgit.com/pysmt/pysmt/master/docs/architecture.svg :alt: PySMT Architecture Overview
.. code:: python
from pysmt.shortcuts import Symbol, And, Not, is_sat
varA = Symbol("A") # Default type is Boolean varB = Symbol("B") f = And(varA, Not(varB)) f (A & (! B)) is_sat(f) True g = f.substitute({varB: varA}) g (A & (! A)) is_sat(g) False
Is there a value for each letter (between 1 and 9) so that H+E+L+L+O = W+O+R+L+D = 25?
.. code:: python
from pysmt.shortcuts import Symbol, And, GE, LT, Plus, Equals, Int, get_model from pysmt.typing import INT
hello = [Symbol(s, INT) for s in "hello"] world = [Symbol(s, INT) for s in "world"] letters = set(hello+world) domains = And([And(GE(l, Int(1)), LT(l, Int(10))) for l in letters])
sum_hello = Plus(hello) # n-ary operators can take lists sum_world = Plus(world) # as arguments problem = And(Equals(sum_hello, sum_world), Equals(sum_hello, Int(25))) formula = And(domains, problem)
print("Serialization of the formula:") print(formula)
model = get_model(formula) if model: print(model) else: print("No solution found")
Portfolio solving consists of running multiple solvers in parallel. pySMT provides a simple interface to perform portfolio solving using multiple solvers and multiple solver configurations.
.. code:: python
from pysmt.shortcuts import Portfolio, Symbol, Not
x, y = Symbol("x"), Symbol("y") f = x.Implies(y)
with Portfolio(["cvc5", "yices", ("msat", {"random_seed": 1}), ("msat", {"random_seed": 17}), ("msat", {"random_seed": 42})], logic="QF_UFLIRA", incremental=False, generate_models=False) as s: s.add_assertion(f) s.push() s.add_assertion(x) res = s.solve() v_y = s.get_value(y) print(v_y) # TRUE
s.pop()
s.add_assertion(Not(y))
res = s.solve()
v_x = s.get_value(x)
print(v_x) # FALSE
.. code:: python
from pysmt.shortcuts import Symbol, get_env, Solver from pysmt.logics import QF_UFLRA
name = "mathsat-smtlib" # Note: The API version is called 'msat'
path = ["/tmp/mathsat"] logics = [QF_UFLRA,] # List of the supported logics
env = get_env() env.factory.add_generic_solver(name, path, logics)
with Solver(name=name, logic="QF_UFLRA") as s: print(s.is_sat(Symbol("x"))) # True
Check out more examples in the examples/ directory </examples>_ and the documentation on ReadTheDocs <http://pysmt.readthedocs.io>_
pySMT provides methods to define a formula in Linear Real Arithmetic (LRA), Real Difference Logic (RDL), Equalities and Uninterpreted Functions (EUF), Bit-Vectors (BV), Arrays (A), Strings (S) and their combinations. The following solvers are supported through native APIs:
Additionally, you can use any SMT-LIB 2 compliant solver.
PySMT assumes that the Python bindings for the SMT solver are installed and importable by the Python interpreter running pySMT.
You can install the latest stable release of pySMT from PyPI::
$ pip install pysmt
this will additionally install the pysmt-install command, that can be used to install the solvers: e.g., ::
$ pysmt-install --check
will show you which solvers pySMT can find. PySMT does not depend directly on any solver, but if you want to perform solving, you need to have at least one solver installed. This can be used by pySMT via its native API, or passing through an SMT-LIB file.
The script pysmt-install can be used to simplify the installation of the solvers::
$ pysmt-install --msat
will install MathSAT 5.
pysmt-install installs the solvers into the Python interpreter that
runs it (e.g., the active virtual environment). It uses pip from that
interpreter, or uv pip when pip is not available (as in
environments created by uv). Z3, cvc5, Boolector, CUDD, MathSAT and
OptiMathSAT are installed as regular packages, so they can be upgraded
or removed with the same tool (e.g., pip uninstall z3-solver or
pip uninstall mathsat; OptiMathSAT is optimathsat). If you
cannot write to the environment, --target DIR installs the solvers
into DIR, which you then need to add to your PYTHONPATH, and
pysmt-install --check --target DIR checks the solvers in DIR.
MathSAT, OptiMathSAT, Yices and PicoSAT are downloaded and built in the
.smt_solvers folder in your home directory (see --install-path)
before being installed. For Yices, pysmt-install installs SRI's
yices Python API and copies libyices next to it, taken from SRI's
prebuilt release archive on Linux x86_64 and macOS. On other platforms it
builds libyices from source, which needs a C compiler, make, gperf
and the GMP library with its headers. A libyices installed in the
system takes precedence over the copy installed by pysmt-install,
and pip uninstall yices does not remove the copy. Building the MathSAT and OptiMathSAT bindings
needs a C++ compiler and the GMP library with its headers (e.g.,
libgmp-dev on Debian/Ubuntu, gmp from Homebrew on macOS). On
Windows it needs the Microsoft C++ Build Tools, and pysmt-install
downloads GMP itself. If you have multiple versions of Python in your
system, we recommend the following syntax to run pysmt-install:
python -m pysmt install.
Note: This script does not install required dependencies for building the solver (e.g., make or gcc) and has been tested mainly on Linux Debian/Ubuntu systems. We suggest that you refer to the documentation of each solver to understand how to install it with its python bindings.
For picosat and CUDD, we use external wrappers:
For instruction on how to use any SMT-LIB complaint solver with pySMT
see examples/generic_smtlib.py </examples/generic_smtlib.py>_
For more information, refer to online documentation on ReadTheDocs <http://pysmt.readthedocs.io>_
The following table summarizes the features supported via pySMT for each of the available solvers.
+------------------+-----------+-----------------------------------+-------------+------------------------+------------+--------------+ | Solver | pySMT name| Supported Theories | Quantifiers | Quantifier Elimination | Unsat Core | Interpolation| +==================+===========+===================================+=============+========================+============+==============+ | MathSAT | msat | UF, LIA, LRA, BV, AX, NRA, NIA | No | msat-fm, msat-lw | Yes | Yes | +------------------+-----------+-----------------------------------+-------------+------------------------+------------+--------------+ | Z3 | z3 | UF, LIA, LRA, BV, AX, NRA, NIA | Yes | z3 | Yes | No | +------------------+-----------+-----------------------------------+-------------+------------------------+------------+--------------+ | cvc5 | cvc5 | UF, LIA, LRA, BV, AX, S, NRA, NIA | Yes | No | No | No | +------------------+-----------+-----------------------------------+-------------+------------------------+------------+--------------+ | Yices | yices | UF, LIA, LRA, BV | No | No | No | No | +------------------+-----------+-----------------------------------+-------------+------------------------+------------+--------------+ | Boolector | btor | UF, BV, AX | No | No | Yes | No | +------------------+-----------+-----------------------------------+-------------+------------------------+------------+--------------+ | SMT-Lib Interface| | UF, LIA, LRA, BV, AX | Yes | No | No | No | +------------------+-----------+-----------------------------------+-------------+------------------------+------------+--------------+ | PicoSAT | picosat | [None] | No | [No] | No | No | +------------------+-----------+-----------------------------------+-------------+------------------------+------------+--------------+ | BDD (CUDD) | bdd | [None] | Yes | bdd | No | No | +------------------+-----------+-----------------------------------+-------------+------------------------+------------+--------------+
pySMT is released under the APACHE 2.0 License.
For further questions, feel free to open an issue, or write to
pysmt@googlegroups.com (Browse the Archive <https://groups.google.com/d/forum/pysmt>_).
If you use pySMT in your work, please consider citing:
.. code::
@inproceedings{pysmt2015, title={PySMT: a solver-agnostic library for fast prototyping of SMT-based algorithms}, author={Gario, Marco and Micheli, Andrea}, booktitle={SMT Workshop 2015}, year={2015} }
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.