MCPcopy Create free account
hub / github.com/argotorg/solidity / expr

Method expr

libsolidity/formal/SMTEncoder.cpp:2563–2572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2561}
2562
2563smtutil::Expression SMTEncoder::expr(Expression const& _e, Type const* _targetType)
2564{
2565 if (!m_context.knownExpression(_e))
2566 {
2567 m_unsupportedErrors.warning(6031_error, _e.location(), "Internal error: Expression undefined for SMT solver." );
2568 createExpr(_e);
2569 }
2570
2571 return m_context.expression(_e)->currentValue(underlyingType(_targetType));
2572}
2573
2574void SMTEncoder::createExpr(Expression const& _e)
2575{

Callers 1

visitMethod · 0.80

Calls 5

knownExpressionMethod · 0.80
warningMethod · 0.45
locationMethod · 0.45
currentValueMethod · 0.45
expressionMethod · 0.45

Tested by

no test coverage detected