Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.37 KB | None | 0 0
  1. library A {
  2. function doSomething() constant returns (uint) { return 10; }
  3. function doInternal() internal constant returns (uint) { return 99; }
  4. }
  5.  
  6. library B {
  7. function doSomething() constant returns (uint) { return 2000; }
  8. function doInternal() internal constant returns (uint) { return 8888; }
  9. }
  10.  
  11. contract Consumer {
  12. function execute() {
  13. uint x = A.doSomething();
  14. uint y = A.doInternal();
  15. }
  16. }
  17.  
  18. .code
  19. PUSH 60 contract Consumer {n functi...
  20. PUSH 40 contract Consumer {n functi...
  21. MSTORE contract Consumer {n functi...
  22. CALLVALUE contract Consumer {n functi...
  23. ISZERO contract Consumer {n functi...
  24. PUSH [tag] 1 contract Consumer {n functi...
  25. JUMPI contract Consumer {n functi...
  26. PUSH 0 contract Consumer {n functi...
  27. DUP1 contract Consumer {n functi...
  28. REVERT contract Consumer {n functi...
  29. tag 1 contract Consumer {n functi...
  30. JUMPDEST contract Consumer {n functi...
  31. tag 2 contract Consumer {n functi...
  32. JUMPDEST contract Consumer {n functi...
  33. PUSH #[$] 0000000000000000000000000000000000000000000000000000000000000000 contract Consumer {n functi...
  34. DUP1 contract Consumer {n functi...
  35. PUSH [$] 0000000000000000000000000000000000000000000000000000000000000000 contract Consumer {n functi...
  36. PUSH 0 contract Consumer {n functi...
  37. CODECOPY contract Consumer {n functi...
  38. PUSH 0 contract Consumer {n functi...
  39. RETURN contract Consumer {n functi...
  40. .data
  41. 0:
  42. .code
  43. PUSH 60 contract Consumer {n functi...
  44. PUSH 40 contract Consumer {n functi...
  45. MSTORE contract Consumer {n functi...
  46. PUSH 0 contract Consumer {n functi...
  47. CALLDATALOAD contract Consumer {n functi...
  48. PUSH 100000000000000000000000000000000000000000000000000000000 contract Consumer {n functi...
  49. SWAP1 contract Consumer {n functi...
  50. DIV contract Consumer {n functi...
  51. PUSH FFFFFFFF contract Consumer {n functi...
  52. AND contract Consumer {n functi...
  53. DUP1 contract Consumer {n functi...
  54. PUSH 61461954 contract Consumer {n functi...
  55. EQ contract Consumer {n functi...
  56. PUSH [tag] 2 contract Consumer {n functi...
  57. JUMPI contract Consumer {n functi...
  58. tag 1 contract Consumer {n functi...
  59. JUMPDEST contract Consumer {n functi...
  60. PUSH 0 contract Consumer {n functi...
  61. DUP1 contract Consumer {n functi...
  62. REVERT contract Consumer {n functi...
  63. tag 2 function execute() {n ui...
  64. JUMPDEST function execute() {n ui...
  65. CALLVALUE function execute() {n ui...
  66. ISZERO function execute() {n ui...
  67. PUSH [tag] 3 function execute() {n ui...
  68. JUMPI function execute() {n ui...
  69. PUSH 0 function execute() {n ui...
  70. DUP1 function execute() {n ui...
  71. REVERT function execute() {n ui...
  72. tag 3 function execute() {n ui...
  73. JUMPDEST function execute() {n ui...
  74. PUSH [tag] 4 function execute() {n ui...
  75. PUSH [tag] 5 function execute() {n ui...
  76. JUMP function execute() {n ui...
  77. tag 4 function execute() {n ui...
  78. JUMPDEST function execute() {n ui...
  79. STOP function execute() {n ui...
  80. tag 5 function execute() {n ui...
  81. JUMPDEST function execute() {n ui...
  82. PUSH 0 uint x
  83. DUP1 uint y
  84. PUSHLIB browser/Untitled.sol:A A
  85. PUSH 82692679 A.doSomething
  86. PUSH 0 A.doSomething()
  87. PUSH 40 A.doSomething()
  88. MLOAD A.doSomething()
  89. PUSH 20 A.doSomething()
  90. ADD A.doSomething()
  91. MSTORE A.doSomething()
  92. PUSH 40 A.doSomething()
  93. MLOAD A.doSomething()
  94. DUP2 A.doSomething()
  95. PUSH FFFFFFFF A.doSomething()
  96. AND A.doSomething()
  97. PUSH 100000000000000000000000000000000000000000000000000000000 A.doSomething()
  98. MUL A.doSomething()
  99. DUP2 A.doSomething()
  100. MSTORE A.doSomething()
  101. PUSH 4 A.doSomething()
  102. ADD A.doSomething()
  103. PUSH 20 A.doSomething()
  104. PUSH 40 A.doSomething()
  105. MLOAD A.doSomething()
  106. DUP1 A.doSomething()
  107. DUP4 A.doSomething()
  108. SUB A.doSomething()
  109. DUP2 A.doSomething()
  110. DUP7 A.doSomething()
  111. DUP1 A.doSomething()
  112. EXTCODESIZE A.doSomething()
  113. ISZERO A.doSomething()
  114. ISZERO A.doSomething()
  115. PUSH [tag] 7 A.doSomething()
  116. JUMPI A.doSomething()
  117. PUSH 0 A.doSomething()
  118. DUP1 A.doSomething()
  119. REVERT A.doSomething()
  120. tag 7 A.doSomething()
  121. JUMPDEST A.doSomething()
  122. PUSH 2C6 A.doSomething()
  123. GAS A.doSomething()
  124. SUB A.doSomething()
  125. DELEGATECALL A.doSomething()
  126. ISZERO A.doSomething()
  127. ISZERO A.doSomething()
  128. PUSH [tag] 8 A.doSomething()
  129. JUMPI A.doSomething()
  130. PUSH 0 A.doSomething()
  131. DUP1 A.doSomething()
  132. REVERT A.doSomething()
  133. tag 8 A.doSomething()
  134. JUMPDEST A.doSomething()
  135. POP A.doSomething()
  136. POP A.doSomething()
  137. POP A.doSomething()
  138. PUSH 40 A.doSomething()
  139. MLOAD A.doSomething()
  140. DUP1 A.doSomething()
  141. MLOAD A.doSomething()
  142. SWAP1 A.doSomething()
  143. POP A.doSomething()
  144. SWAP2 uint x = A.doSomething()
  145. POP uint x = A.doSomething()
  146. PUSH [tag] 9 A.doInternal()
  147. PUSH [tag] 10 A.doInternal
  148. JUMP [in] A.doInternal()
  149. tag 9 A.doInternal()
  150. JUMPDEST A.doInternal()
  151. SWAP1 uint y = A.doInternal()
  152. POP uint y = A.doInternal()
  153. tag 6 function execute() {n ui...
  154. JUMPDEST function execute() {n ui...
  155. POP function execute() {n ui...
  156. POP function execute() {n ui...
  157. JUMP [out] function execute() {n ui...
  158. tag 10 function doInternal() internal...
  159. JUMPDEST function doInternal() internal...
  160. PUSH 0 uint
  161. PUSH 63 99
  162. SWAP1 return 99
  163. POP return 99
  164. tag 11 function doInternal() internal...
  165. JUMPDEST function doInternal() internal...
  166. SWAP1 function doInternal() internal...
  167. JUMP [out] function doInternal() internal...
  168. .data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement