Skip to content

Commit

Permalink
Improve error for assumption scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Dec 20, 2024
1 parent 216d384 commit 4331a9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,9 @@ bool State::includeFile(const std::string& s, bool isSignature, bool isReference
Trace("state") << "...finished" << std::endl;
if (getAssumptionLevel()!=0)
{
Assert(!d_declsSizeCtx.empty() && d_declsSizeCtx.back()<d_decls.size());
EO_FATAL() << "Including file " << inputPath.getRawPath()
<< " did not preserve assumption scope";
<< " did not preserve assumption scope. The most recent open assumption was " << d_decls[d_declsSizeCtx.back()] << ".";
}
return true;
}
Expand Down

0 comments on commit 4331a9d

Please sign in to comment.