| 59 | } |
| 60 | |
| 61 | smtutil::Expression constructor(Predicate const& _pred, EncodingContext& _context) |
| 62 | { |
| 63 | auto const& contract = dynamic_cast<ContractDefinition const&>(*_pred.programNode()); |
| 64 | if (auto const* constructor = contract.constructor()) |
| 65 | return _pred(currentFunctionVariablesForDefinition(*constructor, &contract, _context)); |
| 66 | |
| 67 | auto& state = _context.state(); |
| 68 | std::vector<smtutil::Expression> stateExprs = getStateExpressionsForConstructor(state); |
| 69 | return _pred(stateExprs + initialStateVariables(contract, _context) + currentStateVariables(contract, _context)); |
| 70 | } |
| 71 | |
| 72 | smtutil::Expression constructorCall(Predicate const& _pred, EncodingContext& _context, bool _internal) |
| 73 | { |
no test coverage detected