Advertisement
tinyevil

Untitled

Mar 28th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. foo.x.y.z = 20
  2. ^
  3. |
  4. field_of 'z' (field_of 'y' (field_of 'x' (func_param "foo")))
  5. does
  6. 1 <- gep foo, (offset of 'x')
  7. 2 <- gep 2, (offset of 'y')
  8. 3 <- gep 3, (offset of 'z')
  9. store 3, "20"
  10.  
  11. foo().x = 20
  12. ^
  13. |
  14. field_of 'x' (temporary @1)"
  15. does
  16. 1 <- gep @1, (offset of 'x')
  17. store 1, "20"
  18.  
  19. my_dict["x"] = 20
  20. ^
  21. |
  22. subscript_operator (func_param "my_dict") (literal @2)
  23. does
  24. call "Dictionary::operator[]=" (my_dict, @2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement