Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. struct Bar
  2. {
  3.     int a;
  4.     int[] b;
  5. }
  6.  
  7. struct Foo
  8. {
  9.     int Sum(Bar[][] b)
  10.     {
  11.         b[b[0][0].a][0].a = b[1][1].b[89];
  12.     }
  13. }
  14.  
  15.  
  16. ------------------------
  17.  
  18. namespace $ {}
  19.   struct Bar
  20.     int32 a @ 0
  21.     ref int32[] b @ 4
  22.   struct Foo
  23.     int32 Sum(ref ref Bar[][])
  24.       load [frame+4]
  25.       int 1
  26.       aaddr tos*4
  27.       load [tos]
  28.       int 1
  29.       aaddr tos*8
  30.       load [tos+4]
  31.       int 89
  32.       aaddr tos*4
  33.       load [tos]
  34.       load [frame+4]
  35.       load [frame+4]
  36.       int 0
  37.       aaddr tos*4
  38.       load [tos]
  39.       int 0
  40.       aaddr tos*8
  41.       load [tos]
  42.       aaddr tos*4
  43.       load [tos]
  44.       int 0
  45.       aaddr tos*8
  46.       store [tos]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement