Skip to content

Commit

Permalink
fix prefixing of identifiers in subproofs
Browse files Browse the repository at this point in the history
  • Loading branch information
HanielB committed Feb 29, 2024
1 parent 4cd8d6d commit da005bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/proof/alethe/alethe_printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ void AletheProofPrinter::printInternal(
Trace("alethe-printer") << push;
Assert(pfChildren.size() == 1);
out << "(anchor :step " << prefix << "t" << id;
std::string subproofPrefix =
prefix + (prefix == "" ? "" : ".") + "t" + std::to_string(id) + ".";
std::string subproofPrefix = prefix + "t" + std::to_string(id) + ".";
std::unordered_map<Node, std::string> subproofAssumptionsMap{assumptionsMap.begin(), assumptionsMap.end()};
std::unordered_map<std::shared_ptr<ProofNode>, std::string> subproofPfMap{pfMap.begin(), pfMap.end()};
// since the subproof shape relies on having at least one step inside it, if
Expand All @@ -235,7 +234,6 @@ void AletheProofPrinter::printInternal(
{
subproofPfMap.erase(it);
}

// if subproof, print assumptions, other print arguments
if (arule == AletheRule::ANCHOR_SUBPROOF)
{
Expand Down

0 comments on commit da005bf

Please sign in to comment.