|
tvm
|
Optional Z3-backed prover over the analyzer's accepted premises. More...
#include <analyzer.h>
Public Member Functions | |
| TVM_TIRX_DLL bool | IsEnabled () const |
| Whether the Z3 backend is compiled into this build (TVM_TIRX_USE_Z3=ON). | |
| TVM_TIRX_DLL bool | CanProve (const PrimExpr &expr) |
| Attempt to prove that expr holds under the current premises. | |
| TVM_TIRX_DLL ffi::String | GetSMTLIB2 (const ffi::Optional< PrimExpr > expr) |
| Get the SMTLIB2 representation of the current context. | |
| TVM_TIRX_DLL ffi::String | GetStats () |
| Get statistics about Z3 prover. | |
| TVM_TIRX_DLL void | SetTimeoutMs (unsigned timeout_ms) |
| Set timeout in milliseconds for Z3 prover. | |
| TVM_TIRX_DLL void | SetRLimit (unsigned rlimit) |
| Set resource limitation for Z3 prover. | |
| TVM_TIRX_DLL ffi::String | GetModel (const PrimExpr &expr) |
| Get a counterexample model for a boolean expression. | |
| TVM_TIRX_DLL int64_t | CountSatisfyingValues (const Var &var, int64_t max_count=2048, int64_t min_consecutive=1) |
| Count the number of integer values that satisfy the current constraints. | |
Friends | |
| class | AnalyzerObj |
| class | Analyzer |
Optional Z3-backed prover over the analyzer's accepted premises.
Diagnostic and enumeration queries may propagate translation or solver errors. Their temporary assertions do not change the accepted premise environment.
| TVM_TIRX_DLL bool tvm::sym::Z3Prover::CanProve | ( | const PrimExpr & | expr | ) |
Attempt to prove that expr holds under the current premises.
| expr | Boolean expression to prove. |
| TVM_TIRX_DLL int64_t tvm::sym::Z3Prover::CountSatisfyingValues | ( | const Var & | var, |
| int64_t | max_count = 2048, |
||
| int64_t | min_consecutive = 1 |
||
| ) |
Count the number of integer values that satisfy the current constraints.
Enumerates distinct values until the limit, unsatisfiability, or an inconclusive result. The count may be partial; it is not a proof of the domain cardinality.
| var | The variable to count satisfying values for. |
| max_count | Maximum number of values to enumerate; nonpositive values enumerate none. |
| min_consecutive | Minimum size of each consecutive run in the enumerated values; nonpositive values disable this check. The check does not establish complete coverage. |
| TVM_TIRX_DLL ffi::String tvm::sym::Z3Prover::GetModel | ( | const PrimExpr & | expr | ) |
Get a counterexample model for a boolean expression.
| expr | Boolean expression whose negation is checked under the current premises. |
| TVM_TIRX_DLL ffi::String tvm::sym::Z3Prover::GetSMTLIB2 | ( | const ffi::Optional< PrimExpr > | expr | ) |
Get the SMTLIB2 representation of the current context.
| expr | Optional boolean expression whose negation is added as a proof query. |
| TVM_TIRX_DLL ffi::String tvm::sym::Z3Prover::GetStats | ( | ) |
Get statistics about Z3 prover.
| TVM_TIRX_DLL bool tvm::sym::Z3Prover::IsEnabled | ( | ) | const |
Whether the Z3 backend is compiled into this build (TVM_TIRX_USE_Z3=ON).
| TVM_TIRX_DLL void tvm::sym::Z3Prover::SetRLimit | ( | unsigned | rlimit | ) |
Set resource limitation for Z3 prover.
| rlimit | Z3 resource limit; zero disables it. Ignored by the stub. |
| TVM_TIRX_DLL void tvm::sym::Z3Prover::SetTimeoutMs | ( | unsigned | timeout_ms | ) |
Set timeout in milliseconds for Z3 prover.
| timeout_ms | The timeout in milliseconds; zero disables the timeout. Ignored by the stub. |
|
friend |
|
friend |