Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
philiprbrenan committed Feb 6, 2025
1 parent b8b6768 commit da624b5
Show file tree
Hide file tree
Showing 101 changed files with 243,178 additions and 246,099 deletions.
42 changes: 23 additions & 19 deletions BtreePA.java
Original file line number Diff line number Diff line change
Expand Up @@ -1172,22 +1172,26 @@ private void splitLeaf() //
}
};

tt(node_leafSize, node_splitLeaf); leafSize();
tt(node_leafIsFull, node_splitLeaf); leafIsFull();
if (Halt)
{tt(node_leafSize, node_splitLeaf); leafSize();
tt(node_leafIsFull, node_splitLeaf); leafIsFull();

if (Halt) P.new If (T.at(leafIsFull))
{void Else()
{P.halt("Leaf is not full");
}
};
P.new If (T.at(leafIsFull))
{void Else()
{P.halt("Leaf is not full");
}
};
}

tt(node_branchIsFull, splitParent); branchIsFull();
if (Halt)
{tt(node_branchIsFull, splitParent); branchIsFull();
P.new If (T.at(branchIsFull))
{void Then()
{P.halt("Leaf split parent must not be full");
}
};
}

if (Halt) P.new If (T.at(branchIsFull))
{void Then()
{P.halt("Leaf split parent must not be full");
}
};
allocLeaf(); tt(l, allocLeaf); // New split out leaf

tt(node_leafBase1, l); leafBase1(); lL.base(T.at(leafBase1)); // The leaf being split into
Expand Down Expand Up @@ -3639,39 +3643,39 @@ static void test_verilog_put() //
1=1 2,3=2 |
""");

t.runVerilogPutTest(4, 561, """
t.runVerilogPutTest(4, 540, """
2 |
0 |
1 |
2 |
1,2=1 3,4=2 |
""");

t.runVerilogPutTest(5, 674, """
t.runVerilogPutTest(5, 653, """
2 3 |
0 0.1 |
1 3 |
2 |
1,2=1 3=3 4,5=2 |
""");

t.runVerilogPutTest(6, 742, """
t.runVerilogPutTest(6, 721, """
2 4 |
0 0.1 |
1 3 |
2 |
1,2=1 3,4=3 5,6=2 |
""");

t.runVerilogPutTest(7, 855, """
t.runVerilogPutTest(7, 834, """
2 4 5 |
0 0.1 0.2 |
1 3 4 |
2 |
1,2=1 3,4=3 5=4 6,7=2 |
""");

t.runVerilogPutTest(8, 1030, """
t.runVerilogPutTest(8, 1009, """
4 |
0 |
5 |
Expand All @@ -3683,7 +3687,7 @@ static void test_verilog_put() //
1,2=1 3,4=3 5,6=4 7,8=2 |
""");

t.runVerilogPutTest(9, 953, """
t.runVerilogPutTest(9, 932, """
4 |
0 |
5 |
Expand Down
Loading

0 comments on commit da624b5

Please sign in to comment.