mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-11-24 15:32:27 +00:00
Fix test, dump format.
This commit is contained in:
parent
684256f7e9
commit
40d9c57d64
@ -53,7 +53,7 @@ def process_input_files(filenames, options):
|
||||
if options.dump_callgraph:
|
||||
from sixtypical.callgraph import construct_callgraph
|
||||
graph = construct_callgraph(program)
|
||||
sys.stdout.write(json.dumps(graph, indent=4, sort_keys=True, separators=(',', ':')))
|
||||
sys.stdout.write(json.dumps(graph, indent=4, sort_keys=True, separators=(',', ': ')))
|
||||
|
||||
compilation_roster = None
|
||||
if options.optimize_fallthru:
|
||||
@ -64,7 +64,7 @@ def process_input_files(filenames, options):
|
||||
return
|
||||
if label:
|
||||
sys.stdout.write("*** {}:\n".format(label))
|
||||
sys.stdout.write(json.dumps(data, indent=4, sort_keys=True, separators=(',', ':')))
|
||||
sys.stdout.write(json.dumps(data, indent=4, sort_keys=True, separators=(',', ': ')))
|
||||
sys.stdout.write("\n")
|
||||
|
||||
fa = FallthruAnalyzer(symtab, debug=options.debug)
|
||||
|
@ -15,8 +15,9 @@ The `main` routine is always called.
|
||||
| define main routine
|
||||
| {
|
||||
| }
|
||||
= [
|
||||
= [
|
||||
= "main"
|
||||
= ]
|
||||
= ]
|
||||
= {
|
||||
= "main": {
|
||||
= "potentially-called-by": [],
|
||||
= "potentially-calls": []
|
||||
= }
|
||||
= }
|
||||
|
Loading…
Reference in New Issue
Block a user