Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug with solipsizing in multiple

  • Loading branch information...
commit 73eae0366b1ebe9ed3826569971ab0ff18dca0ce 1 parent d171414
@kripken authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  Relooper.cpp
  2. +1 −1  test.cpp
View
3  Relooper.cpp
@@ -134,6 +134,7 @@ void Relooper::Calculate(Block *Entry) {
// Converts/processes all branchings to a specific target
void Solipsize(Block *Target, Branch::FlowType Type, Shape *Ancestor, BlockSet &From) {
PrintDebug("Solipsizing branches into %d\n", Target->Id);
+ Debugging::Dump(From, " relevant to solipsize: ");
for (BlockBranchMap::iterator iter = Target->BranchesIn.begin(); iter != Target->BranchesIn.end();) {
Block *Prior = iter->first;
if (From.find(Prior) == From.end()) {
@@ -334,7 +335,7 @@ void Relooper::Calculate(Block *Entry) {
Next++;
if (CurrBlocks.find(CurrTarget) == CurrBlocks.end()) {
NextEntries.insert(CurrTarget);
- Solipsize(CurrTarget, Branch::Break, Multiple, Blocks);
+ Solipsize(CurrTarget, Branch::Break, Multiple, CurrBlocks);
}
iter = Next; // increment carefully because Solipsize can remove us
}
View
2  test.cpp
@@ -18,7 +18,7 @@ struct SimpleBlock : public Block {
};
int main() {
- Debugging::On = 1;
+ Debugging::On = 0;
if (1) {
printf("\n\n-- If pattern --\n");
Please sign in to comment.
Something went wrong with that request. Please try again.