mirror of
https://github.com/catseye/SixtyPical.git
synced 2025-02-01 23:33:28 +00:00
Restore the debugging (which should be rethought, anyway).
This commit is contained in:
parent
d13c6a94a2
commit
547b7c960a
@ -411,14 +411,16 @@ class Analyzer(object):
|
|||||||
|
|
||||||
self.analyze_block(routine.block, context)
|
self.analyze_block(routine.block, context)
|
||||||
|
|
||||||
|
trashed = set(context.each_touched()) - set(context.each_meaningful())
|
||||||
|
|
||||||
if self.debug:
|
if self.debug:
|
||||||
print("at end of routine `{}`:".format(routine.name))
|
print("at end of routine `{}`:".format(routine.name))
|
||||||
print(context)
|
print(context)
|
||||||
#print("trashed: ", LocationRef.format_set(trashed))
|
print("trashed: ", LocationRef.format_set(trashed))
|
||||||
print("outputs: ", LocationRef.format_set(type_.outputs))
|
print("outputs: ", LocationRef.format_set(type_.outputs))
|
||||||
#trashed_outputs = type_.outputs & trashed
|
trashed_outputs = type_.outputs & trashed
|
||||||
#if trashed_outputs:
|
if trashed_outputs:
|
||||||
# print("TRASHED OUTPUTS: ", LocationRef.format_set(trashed_outputs))
|
print("TRASHED OUTPUTS: ", LocationRef.format_set(trashed_outputs))
|
||||||
print('')
|
print('')
|
||||||
print('-' * 79)
|
print('-' * 79)
|
||||||
print('')
|
print('')
|
||||||
@ -438,8 +440,6 @@ class Analyzer(object):
|
|||||||
raise InconsistentExitError("Exit contexts are not consistent")
|
raise InconsistentExitError("Exit contexts are not consistent")
|
||||||
context.update_from(exit_context)
|
context.update_from(exit_context)
|
||||||
|
|
||||||
trashed = set(context.each_touched()) - set(context.each_meaningful())
|
|
||||||
|
|
||||||
# these all apply whether we encountered goto(s) in this routine, or not...:
|
# these all apply whether we encountered goto(s) in this routine, or not...:
|
||||||
|
|
||||||
# can't trash an output.
|
# can't trash an output.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user