From 68f7a776d01f0ee52c1df1b7ae7dab4eb2adeab5 Mon Sep 17 00:00:00 2001 From: Niklas Bergmann Date: Thu, 2 Nov 2023 10:04:19 +0100 Subject: [PATCH] black formating --- .../pipeline/preprocessing/register_pair_handling.py | 8 ++------ .../preprocessing/test-register_pairs_handling.py | 4 +++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/decompiler/pipeline/preprocessing/register_pair_handling.py b/decompiler/pipeline/preprocessing/register_pair_handling.py index da5ad1b59..0525b2255 100644 --- a/decompiler/pipeline/preprocessing/register_pair_handling.py +++ b/decompiler/pipeline/preprocessing/register_pair_handling.py @@ -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())] + ), ], ), ) diff --git a/tests/pipeline/preprocessing/test-register_pairs_handling.py b/tests/pipeline/preprocessing/test-register_pairs_handling.py index d1a77e8d1..95a22cf7d 100644 --- a/tests/pipeline/preprocessing/test-register_pairs_handling.py +++ b/tests/pipeline/preprocessing/test-register_pairs_handling.py @@ -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()])), ]