Skip to content

Commit d8be255

Browse files
committed
bam
1 parent 88d7ca9 commit d8be255

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎v3/iframe-embed-demo.html‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,13 @@
3131

3232
<iframe width="800" height="500" frameborder="0" src="//pythontutor.com/iframe-embed.html#code=require+'set'%0A%0Amy_array+%3D+%5B1,+2,+3,+'hello',+false,+true,+nil%5D%0Amy_hash+%3D+%7B'John'+%3D%3E+26,+'Jane'+%3D%3E+21,+'Jack'+%3D%3E+30%7D%0Amy_set+%3D+my_array.to_set%0A%0Amy_hash%5B'nested+array'%5D+%3D+my_array%0Amy_array%5B1%5D+%3D+%5B'a',+'b',+'c'%5D&origin=opt-frontend.js&cumulative=true&heapPrimitives=true&textReferences=true&py=ruby&rawInputLstJSON=%5B%5D&curInstr=3&codeDivWidth=350&codeDivHeight=400"> </iframe>
3333

34+
<p/>
35+
36+
<iframe width="800" height="500" frameborder="0" src="//pythontutor.com/iframe-embed.html#code=//+Example+C+code+for+OPT%0A%23include+%3Cstdlib.h%3E%0A%0A//+from+pg's+meng+thesis%0Aint+globalInt+%3D+42%3B%0A%0Aint+main(%29+%7B%0A++int+localArray%5B10%5D%3B+//+contents+uninitialized%0A++int+*a,+*b,+*c,+i,+j%3B+//+c+and+j+uninitialized,+*c+is+meaningless%0A++a+%3D+%26globalInt%3B%0A++b+%3D+(int*%29malloc(15*sizeof(int%29%29%3B%0A++//+Heap+buffer+overflow+after+i+%3D+14%0A++for+(i+%3D+1%3B+i+%3C+100%3B+i%2B%3D2%29+%7B%0A++++b%5Bi%5D+%3D+i%3B+//+Initialize+only+odd-indexed+elements+of+b%0A++%7D%0A++return+0%3B%0A%7D&origin=opt-frontend.js&cumulative=false&heapPrimitives=false&textReferences=false&py=c&rawInputLstJSON=%5B%5D&curInstr=10&codeDivWidth=350&codeDivHeight=400"> </iframe>
37+
38+
<p/>
39+
40+
<iframe width="800" height="500" frameborder="0" src="//pythontutor.com/iframe-embed.html#code=//+Example+C%2B%2B+code+for+OPT%0Aint+main(%29+%7B%0A++int+*x+%3D+new+int%3B%0A++int+*x_array+%3D+new+int%5B10%5D%3B%0A%0A++x_array%5B1%5D+%3D+1%3B%0A++x_array%5B3%5D+%3D+3%3B%0A++x_array%5B5%5D+%3D+5%3B%0A%0A++delete+x%3B%0A++delete%5B%5D+x_array%3B%0A++return+0%3B%0A%7D&origin=opt-frontend.js&cumulative=false&heapPrimitives=false&textReferences=false&py=cpp&rawInputLstJSON=%5B%5D&curInstr=7&codeDivWidth=350&codeDivHeight=400"> </iframe>
41+
3442
</body>
3543
</html>

0 commit comments

Comments
 (0)