diff --git a/libsolidity/formal/CHC.cpp b/libsolidity/formal/CHC.cpp index edeaa5b23..bc20f3319 100644 --- a/libsolidity/formal/CHC.cpp +++ b/libsolidity/formal/CHC.cpp @@ -164,11 +164,11 @@ void CHC::endVisit(ContractDefinition const& _contract) if (base != &_contract) { m_callGraph[&_contract].insert(base); - vector> const& args = baseArgs.count(base) ? baseArgs.at(base) : decltype(args){}; auto baseConstructor = base->constructor(); - if (baseConstructor && !args.empty()) + if (baseConstructor && baseArgs.count(base)) { + vector> const& args = baseArgs.at(base); auto const& params = baseConstructor->parameters(); solAssert(params.size() == args.size(), ""); for (unsigned i = 0; i < params.size(); ++i)