|
|
@ -98,24 +98,22 @@ func TestRun4(t *testing.T) { |
|
|
|
fmt.Printf("%x\n", addr) |
|
|
|
fmt.Printf("%x\n", addr) |
|
|
|
|
|
|
|
|
|
|
|
asm, err = mutan.Compile(strings.NewReader(` |
|
|
|
asm, err = mutan.Compile(strings.NewReader(` |
|
|
|
int32 a = 10 |
|
|
|
// Check if there's any cash in the initial store
|
|
|
|
int32 b = 10 |
|
|
|
if store[1000] == 0 { |
|
|
|
if a == b { |
|
|
|
store[1000] = 10^20 |
|
|
|
int32 c = 10 |
|
|
|
|
|
|
|
if c == 10 { |
|
|
|
|
|
|
|
int32 d = 1000 |
|
|
|
|
|
|
|
int32 e = 10 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
store[0] = 20 |
|
|
|
store[1001] = this.value() * 20 |
|
|
|
store[a] = 20 |
|
|
|
store[this.origin()] = store[this.origin()] + 1000 |
|
|
|
store[b] = this.caller() |
|
|
|
|
|
|
|
|
|
|
|
if store[1001] > 20 { |
|
|
|
|
|
|
|
store[1001] = 10^50 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int8 ret = 0 |
|
|
|
int8 ret = 0 |
|
|
|
int8 arg = 10 |
|
|
|
int8 arg = 10 |
|
|
|
addr address = "a46df28529eb8aa8b8c025b0b413c5f4b688352f" |
|
|
|
store[1002] = "a46df28529eb8aa8b8c025b0b413c5f4b688352f" |
|
|
|
call(address, 0, 100000000, arg, ret) |
|
|
|
call(store[1002], 0, 100000000, arg, ret) |
|
|
|
`), false) |
|
|
|
`), false) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
fmt.Println(err) |
|
|
|
fmt.Println(err) |
|
|
|