Skip to content

Commit

Permalink
Merge branch 'master' into benchmark2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim8y authored Oct 8, 2024
2 parents bbacc62 + 6067f67 commit dccd558
Showing 1 changed file with 236 additions and 0 deletions.
236 changes: 236 additions & 0 deletions tests/Neo.VM.Tests/Tests/OpCodes/Arithmetic/MODMUL.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,242 @@
}
}
]
},
{
"name": "Real test (-3 * 4 % 5)",
"script": [
"PUSH3",
"NEGATE",
"PUSH4",
"PUSH5",
"MODMUL"
],
"steps": [
{
"actions": [
"stepInto",
"stepInto",
"stepInto",
"stepInto"
],
"result": {
"state": "BREAK",
"invocationStack": [
{
"instructionPointer": 4,
"nextInstruction": "MODMUL",
"evaluationStack": [
{
"type": "Integer",
"value": 5
},
{
"type": "Integer",
"value": 4
},
{
"type": "Integer",
"value": -3
}
]
}
]
}
},
{
"actions": [
"execute"
],
"result": {
"state": "HALT",
"invocationStack": [],
"resultStack": [
{
"type": "Integer",
"value": -2
}
]
}
}
]
},
{
"name": "Real test (3 * 4 % -5)",
"script": [
"PUSH3",
"PUSH4",
"PUSH5",
"NEGATE",
"MODMUL"
],
"steps": [
{
"actions": [
"stepInto",
"stepInto",
"stepInto",
"stepInto"
],
"result": {
"state": "BREAK",
"invocationStack": [
{
"instructionPointer": 4,
"nextInstruction": "MODMUL",
"evaluationStack": [
{
"type": "Integer",
"value": -5
},
{
"type": "Integer",
"value": 4
},
{
"type": "Integer",
"value": 3
}
]
}
]
}
},
{
"actions": [
"execute"
],
"result": {
"state": "HALT",
"invocationStack": [],
"resultStack": [
{
"type": "Integer",
"value": 2
}
]
}
}
]
},
{
"name": "Real test (-3 * 4 % -5)",
"script": [
"PUSH3",
"NEGATE",
"PUSH4",
"PUSH5",
"NEGATE",
"MODMUL"
],
"steps": [
{
"actions": [
"stepInto",
"stepInto",
"stepInto",
"stepInto",
"stepInto"
],
"result": {
"state": "BREAK",
"invocationStack": [
{
"instructionPointer": 5,
"nextInstruction": "MODMUL",
"evaluationStack": [
{
"type": "Integer",
"value": -5
},
{
"type": "Integer",
"value": 4
},
{
"type": "Integer",
"value": -3
}
]
}
]
}
},
{
"actions": [
"execute"
],
"result": {
"state": "HALT",
"invocationStack": [],
"resultStack": [
{
"type": "Integer",
"value": -2
}
]
}
}
]
},
{
"name": "Real test (3 * -4 % -5)",
"script": [
"PUSH3",
"PUSH4",
"NEGATE",
"PUSH5",
"NEGATE",
"MODMUL"
],
"steps": [
{
"actions": [
"stepInto",
"stepInto",
"stepInto",
"stepInto",
"stepInto"
],
"result": {
"state": "BREAK",
"invocationStack": [
{
"instructionPointer": 5,
"nextInstruction": "MODMUL",
"evaluationStack": [
{
"type": "Integer",
"value": -5
},
{
"type": "Integer",
"value": -4
},
{
"type": "Integer",
"value": 3
}
]
}
]
}
},
{
"actions": [
"execute"
],
"result": {
"state": "HALT",
"invocationStack": [],
"resultStack": [
{
"type": "Integer",
"value": -2
}
]
}
}
]
}
]
}

0 comments on commit dccd558

Please sign in to comment.