fixed UnboundLocalError if tp assignment loop is not executed

This commit is contained in:
JanLJL
2023-07-17 14:52:22 +02:00
parent 88a1efe633
commit 1125e4c5d9
2 changed files with 11 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ class ArchSemantics(ISASemantics):
INC = 0.01
kernel.reverse()
port_list = self._machine_model.get_ports()
multiple_assignments = False
for idx, instruction_form in enumerate(kernel[start:], start):
multiple_assignments = False
# if iform has multiple possible port assignments, check all in a DFS manner and take the best