Closed HNYuuu closed 2 years ago
emulator.py
: halt
can be removed, since the returned value in L600 of graph.py
will be ignored.graph.y
:
vis
may be modified by the invocation of calc_circle
at L426.visit
can be postponed.extract_edges
will be used in debugging, maybe we can move all debugging-related code into one class, and use descriptor
to debug functionsThe first three problems are revised in ae4ac2d, 829b635 and 1dc1715, respectively.
However, the DFS-traversal algorithm seems buggy, please refer to #39; and the debugging information and functions should be extracted, please refer to #40.
I am refactoring the
graph.py
, some of the statements need recheck @zzhzzemulator.py
halt
?graph.py
calc_circle
has initializedvis
, but at line 418 thevis
is re-initialized;branches
to make it inline with the data structure at line 470, please recheck it;specify_branch
is enabled or not;extract_edges
?Please recheck this comments, and revise the corresponding statements. Thanks @zzhzz