Add contract name to called function in cex

This commit is contained in:
Leonardo Alt
2021-01-04 10:03:16 +01:00
parent 0e32fa8209
commit b02722ebda
398 changed files with 583 additions and 581 deletions
+4 -3
View File
@@ -151,8 +151,8 @@ bool Predicate::isInterface() const
string Predicate::formatSummaryCall(vector<smtutil::Expression> const& _args) const
{
if (programContract())
return "constructor()";
if (auto contract = programContract())
return contract->name() + ".constructor()";
solAssert(isSummary(), "");
@@ -183,7 +183,8 @@ string Predicate::formatSummaryCall(vector<smtutil::Expression> const& _args) co
fun->isFallback() ? "fallback" :
fun->isReceive() ? "receive" :
fun->name();
return fName + "(" + boost::algorithm::join(functionArgs, ", ") + ")";
solAssert(fun->annotation().contract, "");
return fun->annotation().contract->name() + "." + fName + "(" + boost::algorithm::join(functionArgs, ", ") + ")";
}