@@ -223,7 +223,10 @@ def stats(self):
223223 num_functions = len (self .functions )
224224 num_blocks = sum (len (f .blocks ) for f in self .functions )
225225 num_instructions = sum (f .num_instructions () for f in self .functions )
226- return f"functions: { num_functions } , blocks: { num_blocks } , instructions: { num_instructions } "
226+ return (
227+ f"functions: { num_functions } , blocks: { num_blocks } , "
228+ + f"instructions: { num_instructions } "
229+ )
227230
228231
229232class Value :
@@ -965,7 +968,10 @@ def __init__(self, a, operation, b, name, ty):
965968 self .operation = operation
966969
967970 def __str__ (self ):
968- return f"{ self .ty } { self .name } = { self .a .name } { self .operation } { self .b .name } "
971+ return (
972+ f"{ self .ty } { self .name } = "
973+ + f"{ self .a .name } { self .operation } { self .b .name } "
974+ )
969975
970976
971977def add (a , b , name , ty ):
@@ -1059,7 +1065,10 @@ def __init__(self, name: str, amount: int, alignment: int):
10591065 self .alignment = alignment
10601066
10611067 def __str__ (self ):
1062- return f"{ self .ty } { self .name } = alloc { self .amount } bytes aligned at { self .alignment } "
1068+ return (
1069+ f"{ self .ty } { self .name } = "
1070+ + f"alloc { self .amount } bytes aligned at { self .alignment } "
1071+ )
10631072
10641073
10651074class CopyBlob (Instruction ):
@@ -1105,7 +1114,10 @@ def __init__(self, name, binding, amount, alignment, value=None):
11051114 self .value = value
11061115
11071116 def __str__ (self ):
1108- return f"{ self .binding } variable { self .name } ({ self .amount } bytes aligned at { self .alignment } )"
1117+ return (
1118+ f"{ self .binding } variable { self .name } "
1119+ + f"({ self .amount } bytes aligned at { self .alignment } )"
1120+ )
11091121
11101122
11111123class Parameter (LocalValue ):
@@ -1337,7 +1349,10 @@ def __init__(self, a, cond, b, lab_yes, lab_no):
13371349 self .lab_no = lab_no
13381350
13391351 def __str__ (self ):
1340- return f"cjmp { self .a .name } { self .cond } { self .b .name } ? { self .lab_yes .name } : { self .lab_no .name } "
1352+ return (
1353+ f"cjmp { self .a .name } { self .cond } { self .b .name } ? "
1354+ + f"{ self .lab_yes .name } : { self .lab_no .name } "
1355+ )
13411356
13421357
13431358class JumpTable (JumpBase ):
0 commit comments