All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cvc5-cvc5-1.2.0.docs.examples.lineararith.rst Maven / Gradle / Ivy

The newest version!
Theory of Linear Arithmetic
===========================

This example asserts three constraints over an integer variable :code:`x` and a real variable :code:`y`.
Firstly, it checks that these constraints entail an upper bound on the difference :code:`y - x <= 2/3`.
Secondly, it checks that this bound is tight by asserting :code:`y - x = 2/3` and checking for satisfiability.
The two checks are separated by using :code:`push` and :code:`pop`.

.. api-examples::
    /api/cpp/linear_arith.cpp
    /api/c/linear_arith.c
    /api/java/LinearArith.java
    /api/python/pythonic/linear_arith.py
    /api/python/linear_arith.py
    /api/smtlib/linear_arith.smt2




© 2015 - 2024 Weber Informatics LLC | Privacy Policy