@@ -505,12 +505,12 @@ void RewriteSystem::minimizeRewriteSystem() {
505505 const auto &loop = HomotopyGenerators[loopID];
506506
507507 SmallVector<unsigned > redundancyCandidates =
508- loop.second .findRulesAppearingOnceInEmptyContext ();
508+ loop.Path .findRulesAppearingOnceInEmptyContext ();
509509 if (redundancyCandidates.empty ())
510510 continue ;
511511
512512 auto ruleID = redundancyCandidates.front ();
513- RewritePath replacementPath = loop.second .splitCycleAtRule (ruleID);
513+ RewritePath replacementPath = loop.Path .splitCycleAtRule (ruleID);
514514
515515 deletedRules.insert (ruleID);
516516 deletedHomotopyGenerators.insert (loopID);
@@ -538,30 +538,30 @@ void RewriteSystem::minimizeRewriteSystem() {
538538 continue ;
539539
540540 auto &loop = HomotopyGenerators[loopID];
541- bool changed = loop.second .replaceRuleWithPath (ruleID, replacementPath);
541+ bool changed = loop.Path .replaceRuleWithPath (ruleID, replacementPath);
542542
543543 if (changed) {
544- unsigned size = loop.second .size ();
544+ unsigned size = loop.Path .size ();
545545
546546 bool changed;
547547 do {
548548 changed = false ;
549- changed |= loop.second .computeFreelyReducedPath ();
550- changed |= loop.second .computeCyclicallyReducedLoop (loop.first , *this );
551- changed |= loop.second .computeLeftCanonicalForm (*this );
549+ changed |= loop.Path .computeFreelyReducedPath ();
550+ changed |= loop.Path .computeCyclicallyReducedLoop (loop.Basepoint , *this );
551+ changed |= loop.Path .computeLeftCanonicalForm (*this );
552552 } while (changed);
553553
554554 if (Debug.contains (DebugFlags::HomotopyReduction)) {
555- if (size != loop.second .size ()) {
556- llvm::dbgs () << " ** Note: Cyclically reduced the loop to eliminate "
557- << (size - loop.second .size ()) << " steps\n " ;
555+ if (size != loop.Path .size ()) {
556+ llvm::dbgs () << " ** Note: Reducing the loop eliminated "
557+ << (size - loop.Path .size ()) << " steps\n " ;
558558 }
559559 }
560560
561561 if (Debug.contains (DebugFlags::HomotopyReduction)) {
562562 llvm::dbgs () << " ** Updated homotopy generator: " ;
563- llvm::dbgs () << " - " << loop.first << " : " ;
564- loop.second .dump (llvm::dbgs (), loop.first , *this );
563+ llvm::dbgs () << " - " << loop.Basepoint << " : " ;
564+ loop.Path .dump (llvm::dbgs (), loop.Basepoint , *this );
565565 llvm::dbgs () << " \n " ;
566566 }
567567 }
@@ -587,16 +587,16 @@ void RewriteSystem::minimizeRewriteSystem() {
587587 continue ;
588588
589589 const auto &loop = HomotopyGenerators[loopID];
590- if (loop.second .empty ())
590+ if (loop.Path .empty ())
591591 continue ;
592592
593593 llvm::dbgs () << " (#" << loopID << " ) " ;
594- llvm::dbgs () << loop.first << " : " ;
595- loop.second .dump (llvm::dbgs (), loop.first , *this );
594+ llvm::dbgs () << loop.Basepoint << " : " ;
595+ loop.Path .dump (llvm::dbgs (), loop.Basepoint , *this );
596596 llvm::dbgs () << " \n " ;
597597
598- MutableTerm basepoint = loop.first ;
599- for (auto step : loop.second ) {
598+ MutableTerm basepoint = loop.Basepoint ;
599+ for (auto step : loop.Path ) {
600600 step.apply (basepoint, *this );
601601 llvm::dbgs () << " - " << basepoint << " \n " ;
602602 }
@@ -608,15 +608,15 @@ void RewriteSystem::minimizeRewriteSystem() {
608608void RewriteSystem::verifyHomotopyGenerators () const {
609609#ifndef NDEBUG
610610 for (const auto &loop : HomotopyGenerators) {
611- auto term = loop.first ;
611+ auto term = loop.Basepoint ;
612612
613- for (const auto &step : loop.second ) {
613+ for (const auto &step : loop.Path ) {
614614 step.apply (term, *this );
615615 }
616616
617- if (term != loop.first ) {
617+ if (term != loop.Basepoint ) {
618618 llvm::errs () << " Not a loop: " ;
619- loop.second .dump (llvm::errs (), loop.first , *this );
619+ loop.Path .dump (llvm::errs (), loop.Basepoint , *this );
620620 llvm::errs () << " \n " ;
621621 abort ();
622622 }
0 commit comments