Skip to content

SageInterface::evaluateConstIntegerExpression

The function tries to evaluate const integer expressions (such as are used in array dimension sizes). It follows variable symbols, and requires constness.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

const_int_expr_t
evaluateConstIntegerExpression(SgExpression* expr);

Return Value

The datastructure is used as the return type for SageInterface::evaluateConstIntegerExpression(). One needs to always check whether hasValue_ is true before accessing value_

Parameters

Name

Description

expr

This class represents the notion of an expression. Expressions

Created with MrDocs