Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHL, SHR, SAR, and related tests #352

Merged
merged 5 commits into from
Sep 27, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
SHL, SHR, SAR and related tests
Mike Lubinets committed Sep 27, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit cbce070d5c7bcc75601b6ced0fb81c0c0c7768c8
43 changes: 43 additions & 0 deletions jsontests/res/files/SputnikVM/vmBitwiseLogicOperation/sar0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"sar0": {
"callcreates": [],
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x0100",
"currentGasLimit": "0x0f4240",
"currentNumber": "0x00",
"currentTimestamp": "0x01"
},
"exec": {
"address": "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"caller": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"code": "0x600160001d600055",
"data": "0x",
"gas": "0x0186a0",
"gasPrice": "0x5af3107a4000",
"origin": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"value": "0x0de0b6b3a7640000"
},
"gas": "0x013874",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"out": "0x",
"post": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x600160001d600055",
"nonce": "0x00",
"storage": {
"0x00": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
}
},
"pre": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x600160001d600055",
"nonce": "0x00",
"storage": {}
}
}
}
}
43 changes: 43 additions & 0 deletions jsontests/res/files/SputnikVM/vmBitwiseLogicOperation/sar1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"sar1": {
"callcreates": [],
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x0100",
"currentGasLimit": "0x0f4240",
"currentNumber": "0x00",
"currentTimestamp": "0x01"
},
"exec": {
"address": "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"caller": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"code": "0x600160011d600055",
"data": "0x",
"gas": "0x0186a0",
"gasPrice": "0x5af3107a4000",
"origin": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"value": "0x0de0b6b3a7640000"
},
"gas": "0x01730c",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"out": "0x",
"post": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x600160011d600055",
"nonce": "0x00",
"storage": {
"0x00": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}
},
"pre": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x600160011d600055",
"nonce": "0x00",
"storage": {}
}
}
}
}
44 changes: 44 additions & 0 deletions jsontests/res/files/SputnikVM/vmBitwiseLogicOperation/sar10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

{
"sar10": {
"callcreates": [],
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x0100",
"currentGasLimit": "0x0f4240",
"currentNumber": "0x00",
"currentTimestamp": "0x01"
},
"exec": {
"address": "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"caller": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"code": "0x600060011d600055",
"data": "0x",
"gas": "0x0186a0",
"gasPrice": "0x5af3107a4000",
"origin": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"value": "0x0de0b6b3a7640000"
},
"gas": "0x01730c,
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"out": "0x",
"post": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x600060011d600055",
"nonce": "0x00",
"storage": {
"0x00": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}
},
"pre": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x600060011d600055",
"nonce": "0x00",
"storage": {}
}
}
}
}
43 changes: 43 additions & 0 deletions jsontests/res/files/SputnikVM/vmBitwiseLogicOperation/sar11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"sar11": {
"callcreates": [],
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x0100",
"currentGasLimit": "0x0f4240",
"currentNumber": "0x00",
"currentTimestamp": "0x01"
},
"exec": {
"address": "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"caller": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"code": "0x7f400000000000000000000000000000000000000000000000000000000000000060fe1d600055",
"data": "0x",
"gas": "0x0186a0",
"gasPrice": "0x5af3107a4000",
"origin": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"value": "0x0de0b6b3a7640000"
},
"gas": "0x013874",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"out": "0x",
"post": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f400000000000000000000000000000000000000000000000000000000000000060fe1d600055",
"nonce": "0x00",
"storage": {
"0x00": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
}
},
"pre": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f400000000000000000000000000000000000000000000000000000000000000060fe1d600055",
"nonce": "0x00",
"storage": {}
}
}
}
}
43 changes: 43 additions & 0 deletions jsontests/res/files/SputnikVM/vmBitwiseLogicOperation/sar12.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"sar12": {
"callcreates": [],
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x0100",
"currentGasLimit": "0x0f4240",
"currentNumber": "0x00",
"currentTimestamp": "0x01"
},
"exec": {
"address": "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"caller": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f81d600055",
"data": "0x",
"gas": "0x0186a0",
"gasPrice": "0x5af3107a4000",
"origin": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"value": "0x0de0b6b3a7640000"
},
"gas": "0x013874",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"out": "0x",
"post": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f81d600055",
"nonce": "0x00",
"storage": {
"0x00": "0x000000000000000000000000000000000000000000000000000000000000007f"
}
}
},
"pre": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f81d600055",
"nonce": "0x00",
"storage": {}
}
}
}
}
43 changes: 43 additions & 0 deletions jsontests/res/files/SputnikVM/vmBitwiseLogicOperation/sar13.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"sar13": {
"callcreates": [],
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x0100",
"currentGasLimit": "0x0f4240",
"currentNumber": "0x00",
"currentTimestamp": "0x01"
},
"exec": {
"address": "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"caller": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60fe1d600055",
"data": "0x",
"gas": "0x0186a0",
"gasPrice": "0x5af3107a4000",
"origin": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"value": "0x0de0b6b3a7640000"
},
"gas": "0x013874",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"out": "0x",
"post": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60fe1d600055",
"nonce": "0x00",
"storage": {
"0x00": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
}
},
"pre": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60fe1d600055",
"nonce": "0x00",
"storage": {}
}
}
}
}
43 changes: 43 additions & 0 deletions jsontests/res/files/SputnikVM/vmBitwiseLogicOperation/sar14.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"sar14": {
"callcreates": [],
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x0100",
"currentGasLimit": "0x0f4240",
"currentNumber": "0x00",
"currentTimestamp": "0x01"
},
"exec": {
"address": "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"caller": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60ff1d600055",
"data": "0x",
"gas": "0x0186a0",
"gasPrice": "0x5af3107a4000",
"origin": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"value": "0x0de0b6b3a7640000"
},
"gas": "0x01730c",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"out": "0x",
"post": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60ff1d600055",
"nonce": "0x00",
"storage": {
"0x00": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}
},
"pre": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60ff1d600055",
"nonce": "0x00",
"storage": {}
}
}
}
}
43 changes: 43 additions & 0 deletions jsontests/res/files/SputnikVM/vmBitwiseLogicOperation/sar15.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"sar15": {
"callcreates": [],
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x0100",
"currentGasLimit": "0x0f4240",
"currentNumber": "0x00",
"currentTimestamp": "0x01"
},
"exec": {
"address": "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"caller": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101001d600055",
"data": "0x",
"gas": "0x0186a0",
"gasPrice": "0x5af3107a4000",
"origin": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"value": "0x0de0b6b3a7640000"
},
"gas": "0x01730c",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"out": "0x",
"post": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101001d600055",
"nonce": "0x00",
"storage": {
"0x00": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}
},
"pre": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101001d600055",
"nonce": "0x00",
"storage": {}
}
}
}
}
43 changes: 43 additions & 0 deletions jsontests/res/files/SputnikVM/vmBitwiseLogicOperation/sar2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"sar2": {
"callcreates": [],
"env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty": "0x0100",
"currentGasLimit": "0x0f4240",
"currentNumber": "0x00",
"currentTimestamp": "0x01"
},
"exec": {
"address": "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"caller": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"code": "0x7f800000000000000000000000000000000000000000000000000000000000000060011d600055",
"data": "0x",
"gas": "0x0186a0",
"gasPrice": "0x5af3107a4000",
"origin": "0xcd1722f3947def4cf144679da39c4c32bdc35681",
"value": "0x0de0b6b3a7640000"
},
"gas": "0x013874",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"out": "0x",
"post": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f800000000000000000000000000000000000000000000000000000000000000060011d600055",
"nonce": "0x00",
"storage": {
"0x00": "0xc000000000000000000000000000000000000000000000000000000000000000"
}
}
},
"pre": {
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6": {
"balance": "0xd3c21bcecceda1000000",
"code": "0x7f800000000000000000000000000000000000000000000000000000000000000060011d600055",
"nonce": "0x00",
"storage": {}
}
}
}
}
Loading