Stores identifiers in unescaped and unquoted form.
More...
#include <smt_terms.h>
+ Inheritance diagram for smt_identifier_termt:
+ Collaboration diagram for smt_identifier_termt:
Constructs an identifier term with the given identifier and sort.
- Public Member Functions inherited from
smt_termt
Additional Inherited Members
- Protected Types inherited from
irept
Used to refer to this class from derived classes.
- Protected Member Functions inherited from
smt_termt
- Protected Member Functions inherited from
irept
defines ordering on the internal representation
defines ordering on the internal representation
defines ordering on the internal representation comments are ignored
- Static Protected Member Functions inherited from
irept
count the number of named_sub elements that are not comments
Does the same as remove_ref, but using an explicit stack instead of recursion.
Detailed Description
Stores identifiers in unescaped and unquoted form.
Any escaping or quoting required should be performed during printing.
The SMT-LIB standard Version 2.6 refers to "indexed" identifiers which have 1 or more indices and "simple" identifiers which have no indicies. The internal smt_identifier_termt class is used for both kinds of identifier which are distinguished based on whether the collection of indices is empty or not.
Definition at line 91 of file smt_terms.h.
Constructor & Destructor Documentation
◆ smt_identifier_termt()
smt_identifier_termt::smt_identifier_termt
(
irep_idt
identifier,
)
Constructs an identifier term with the given identifier and sort.
- Parameters
-
identifier This should be the unescaped form of the identifier. Escaping of the identifier if required is to be performed as part of the printing operation. The given identifier is checked to ensure that it has not already been escaped, in order to avoid escaping it twice. Performing escaping during the printing will ensure that the identifiers output conform to the specification of the concrete form.
sort The sort which this term will have. All terms in our abstract form must be sorted, even if those sorts are not printed in all contexts.
indices This should be collection of indices for an indexed identifier, or an empty collection for simple (non-indexed) identifiers.
Definition at line 60 of file smt_terms.cpp.
Member Function Documentation
◆ identifier()
irep_idt smt_identifier_termt::identifier
(
)
const
◆ indices()
std::vector< std::reference_wrapper<
const smt_indext > > smt_identifier_termt::indices
(
)
const
The documentation for this class was generated from the following files:
- /home/runner/work/cbmc/cbmc/src/solvers/smt2_incremental/ast/smt_terms.h
- /home/runner/work/cbmc/cbmc/src/solvers/smt2_incremental/ast/smt_terms.cpp