ESBMC
Efficient SMT-based Context-Bounded Model Checker
Loading...
Searching...
No Matches
yices_smt_ast Class Reference

#include <yices_conv.h>

Inheritance diagram for yices_smt_ast:
[legend]

Public Member Functions

 yices_smt_ast (smt_solver_baset *ctx, term_t _t, const smt_sort *_s)
 ~yices_smt_ast () override=default
void assign (smt_solver_baset *ctx, smt_astt sym) const override
 Abstractly produce an assign.
smt_astt project (smt_solver_baset *ctx, unsigned int elem) const override
 Project a member from a structure, or an field-array from a struct array.
smt_astt update (smt_solver_baset *ctx, smt_astt value, unsigned int idx, const expr2tc &idx_expr=expr2tc()) const override
 Abstractly produce an "update", i.e., an array 'with' or tuple 'with'.
void dump () const override
Public Member Functions inherited from solver_smt_ast< term_t >
 solver_smt_ast (smt_solver_baset *ctx, term_t _a, smt_sortt s)
Public Member Functions inherited from smt_ast
 smt_ast (smt_solver_baset *ctx, smt_sortt s)
virtual ~smt_ast ()=default
virtual smt_astt with_sort (smt_solver_baset *ctx, smt_sortt s) const
 The same solver term under a different sort.
virtual smt_astt ite (smt_solver_baset *ctx, smt_astt cond, smt_astt falseop) const
virtual smt_astt eq (smt_solver_baset *ctx, smt_astt other) const
 Abstractly produce an equality.
virtual smt_astt select (smt_solver_baset *ctx, const expr2tc &idx) const
 Select a value from an array, for both normal arrays and tuple arrays.

Public Attributes

std::string symname
Public Attributes inherited from solver_smt_ast< term_t >
solver_ast_type a
Public Attributes inherited from smt_ast
smt_sortt sort
 The sort of this function application.
const smt_solver_baset * context
 The solver context.

Additional Inherited Members

Public Types inherited from solver_smt_ast< term_t >
typedef term_t solver_ast_type

Constructor & Destructor Documentation

◆ yices_smt_ast()

yices_smt_ast::yices_smt_ast ( smt_solver_baset * ctx,
term_t _t,
const smt_sort * _s )
inline

◆ ~yices_smt_ast()

yices_smt_ast::~yices_smt_ast ( )
overridedefault

Member Function Documentation

◆ assign()

void yices_smt_ast::assign ( smt_solver_baset * ctx,
smt_astt sym ) const
overridevirtual

Abstractly produce an assign.

Defaults to being an equality, however for some special cases up to the backend, there may be optimizations made for array or tuple assigns, and so forth.

Parameters
ctxSMT context to do the assignment in.
symSymbol to assign to

Reimplemented from smt_ast.

◆ dump()

void yices_smt_ast::dump ( ) const
overridevirtual

Reimplemented from smt_ast.

◆ project()

smt_astt yices_smt_ast::project ( smt_solver_baset * ctx,
unsigned int elem ) const
overridevirtual

Project a member from a structure, or an field-array from a struct array.

Parameters
ctxSMT context to produce this in.
elemStruct index to project.
Returns
AST representing the chosen element / element-array

Reimplemented from smt_ast.

◆ update()

smt_astt yices_smt_ast::update ( smt_solver_baset * ctx,
smt_astt value,
unsigned int idx,
const expr2tc & idx_expr = expr2tc() ) const
overridevirtual

Abstractly produce an "update", i.e., an array 'with' or tuple 'with'.

Parameters
ctxSMT context to make this update in.
valueValue to insert into the updated field
idxArray index or tuple field
idx_exprIf an array, expression representing the index
Returns
AST of this type, representing the update

Reimplemented from smt_ast.

Member Data Documentation

◆ symname

std::string yices_smt_ast::symname

The documentation for this class was generated from the following files: