Skip to content

Commit

Permalink
black formating
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6e62 committed Nov 2, 2023
1 parent 5c6635e commit 68f7a77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 2 additions & 6 deletions decompiler/pipeline/preprocessing/register_pair_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,8 @@ def _add_definition_for_replacement(
[
register_pair.low,
BinaryOperation(
OperationType.left_shift,
[
register_pair.high,
Constant(register_pair.low.type.size, vartype=Integer.uint8_t())
]
)
OperationType.left_shift, [register_pair.high, Constant(register_pair.low.type.size, vartype=Integer.uint8_t())]
),
],
),
)
Expand Down
4 changes: 3 additions & 1 deletion tests/pipeline/preprocessing/test-register_pairs_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ 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, Integer.uint8_t())])]),
BinaryOperation(
OperationType.plus, [eax.copy(), BinaryOperation(OperationType.left_shift, [ebx.copy(), Constant(32, Integer.uint8_t())])]
),
),
Branch(Condition(OperationType.greater, [eax.copy(), ebx.copy()])),
]

0 comments on commit 68f7a77

Please sign in to comment.