
Part (a): There are two vertical blocks labeled Run n and Run n plus 1 with both sides open-ended. In the first vertical block Run n, there are nine partitions. The first partition is empty. The second partition has a rectangular block that is highlighted and labeled Stack. The third partition is empty. The fourth partition has three rectangular blocks from top to bottom and an epsilon at the end, out of which the first block is highlighted and labeled Libraries. The second block is labeled string copy (). The third block is labeled string length (). The fifth partition is empty. The sixth partition has three rectangular blocks from top to bottom, out of which the first block is highlighted and labeled Heap. The second block is labeled Object 1. The third block is labeled Object 2. The seventh partition is empty. The eighth partition has three rectangular blocks from top to bottom, out of which the first block is highlighted and labeled Code. The second block is labeled main (). The third block is labeled my Function (). In the second vertical block Run n plus 1, there are eight partitions. The first partition is empty. The second partition has a rectangular block that is highlighted and labeled Stack. The third partition is empty. The fourth partition has three rectangular blocks from top to bottom, out of which the first block is highlighted and labeled Heap. The second block is labeled Object 1. The third block is labeled Object 2. The fifth partition is empty. The sixth partition has three rectangular blocks from top to bottom, out of which the first block is highlighted and labeled Code. The second block is labeled main (). The third block is labeled my Function (). The seventh partition is empty. The eighth partition has three rectangular blocks from top to bottom and an epsilon at the end, out of which the first block is highlighted and labeled Libraries. The second block is labeled string copy (). The third block is labeled String Length (). Part (b): There are two vertical blocks labeled Run n and Run n plus 1 with both sides open-ended. The first vertical block Run n is identical to Run n in part (a). In the second vertical block Run n plus 1, there are eight partitions. The first partition is empty. The second partition has a rectangular block that is highlighted and labeled Stack. The third partition is empty. The fourth partition has three rectangular blocks from top to bottom and epsilon in the middle of the second and third blocks, out of which the first block is highlighted and labeled Libraries. The second block is labeled string copy (). The third block is labeled string copy (). The fifth partition is empty. The sixth partition has three rectangular blocks from top to bottom and an epsilon in the middle of the second and third block and at the end, out of which the first block is highlighted and labeled Heap. The second block is labeled Object 2. The third block is labeled Object 1. The seventh partition has three rectangular blocks from top to bottom and epsilon in the middle of the second and third blocks, out of which the first block is highlighted and labeled Code. The second block is labeled my Function (). The third block is labeled main (). The seventh partition is empty.
Back