git @ Cat's Eye Technologies SixtyPical / 40d9c57
Fix test, dump format. Chris Pressey 2 years ago
2 changed file(s) with 8 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
5252 if options.dump_callgraph:
5353 from sixtypical.callgraph import construct_callgraph
5454 graph = construct_callgraph(program)
55 sys.stdout.write(json.dumps(graph, indent=4, sort_keys=True, separators=(',', ':')))
55 sys.stdout.write(json.dumps(graph, indent=4, sort_keys=True, separators=(',', ': ')))
5656
5757 compilation_roster = None
5858 if options.optimize_fallthru:
6363 return
6464 if label:
6565 sys.stdout.write("*** {}:\n".format(label))
66 sys.stdout.write(json.dumps(data, indent=4, sort_keys=True, separators=(',', ':')))
66 sys.stdout.write(json.dumps(data, indent=4, sort_keys=True, separators=(',', ': ')))
6767 sys.stdout.write("\n")
6868
6969 fa = FallthruAnalyzer(symtab, debug=options.debug)
1414 | define main routine
1515 | {
1616 | }
17 = [
18 = [
19 = "main"
20 = ]
21 = ]
17 = {
18 = "main": {
19 = "potentially-called-by": [],
20 = "potentially-calls": []
21 = }
22 = }