Guest User

Untitled

a guest
Dec 14th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. function (+ a b) entry=bb0
  2. bb0:
  3. v0 = lookup 'assert
  4. v1 = typeof v0
  5. v2 = Binop.SYM_EQ v1 'function
  6. brn v2 non_function
  7. v3 = arity v0
  8. v4 = Binop.NUM_EQ v3 1
  9. brn v4 wrong_arity
  10. v5 = lookup 'number?
  11. v6 = typeof v5
  12. v7 = Binop.SYM_EQ v6 'function
  13. brn v7 non_function
  14. v8 = arity v5
  15. v9 = Binop.NUM_EQ v8 1
  16. brn v9 wrong_arity
  17. v10 = call v5 (a)
  18. v11 = call v0 (v10)
  19. v12 = lookup 'assert
  20. v13 = typeof v12
  21. v14 = Binop.SYM_EQ v13 'function
  22. brn v14 non_function
  23. v15 = arity v12
  24. v16 = Binop.NUM_EQ v15 1
  25. brn v16 wrong_arity
  26. v17 = lookup 'number?
  27. v18 = typeof v17
  28. v19 = Binop.SYM_EQ v18 'function
  29. brn v19 non_function
  30. v20 = arity v17
  31. v21 = Binop.NUM_EQ v20 1
  32. brn v21 wrong_arity
  33. v22 = call v17 (b)
  34. v23 = call v12 (v22)
  35. v24 = lookup 'inst/+
  36. v25 = typeof v24
  37. v26 = Binop.SYM_EQ v25 'function
  38. brn v26 non_function
  39. v27 = arity v24
  40. v28 = Binop.NUM_EQ v27 2
  41. brn v28 wrong_arity
  42. v29 = call v24 (a, b)
  43. return v29
  44.  
  45. non_function:
  46. trap 'Attempted to call a non-function'
  47.  
  48. wrong_arity:
  49. trap 'Call with the wrong number of arguments'
Add Comment
Please, Sign In to add comment