Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Oct 4, 2023
1 parent 0b73201 commit 1a9d651
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/pipeline/preprocessing/test-register_pairs_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def test_undefined_register_pair_is_replaced():
replacement_var := Variable("loc_0", Integer.uint64_t(), 0),
operations.BinaryOperation(
operations.OperationType.plus,
[eax, operations.BinaryOperation(operations.OperationType.left_shift, [ebx, Constant(eax.type.size)])],
[eax, operations.BinaryOperation(operations.OperationType.left_shift, [ebx, Constant(eax.type.size, Integer.int32_t())])],
),
),
Assignment(operations.ListOperation([]), operations.Call(FunctionSymbol("kill", 0), [replacement_var])),
Expand Down Expand Up @@ -213,7 +213,7 @@ def test_definition_is_placed_before_usage():
v(),
BinaryOperation(
OperationType.plus,
[eax(), BinaryOperation(OperationType.left_shift, [ebx(), Constant(eax().type.size)])],
[eax(), BinaryOperation(OperationType.left_shift, [ebx(), Constant(eax().type.size, Integer.int32_t())])],
),
),
Assignment(ListOperation([]), Call(bar(), [v()])),
Expand Down Expand Up @@ -312,7 +312,7 @@ def test_definition_is_inserted_correctly():
Assignment(ebx.copy(), Call(FunctionSymbol("foo", 0), [eax.copy()])),
Assignment(
Variable("loc_0", Integer.int64_t(), 0),
BinaryOperation(OperationType.plus, [eax.copy(), BinaryOperation(OperationType.left_shift, [ebx.copy(), Constant(32)])]),
BinaryOperation(OperationType.plus, [eax.copy(), BinaryOperation(OperationType.left_shift, [ebx.copy(), Constant(32, Integer.int32_t())])]),
),
Branch(Condition(OperationType.greater, [eax.copy(), ebx.copy()])),
]

0 comments on commit 1a9d651

Please sign in to comment.