File tree Expand file tree Collapse file tree 4 files changed +3497
-3496
lines changed
standard_yul_cfg_json_export
strict_asm_yul_cfg_json_export Expand file tree Collapse file tree 4 files changed +3497
-3496
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ Json YulStack::cfgJson() const
409
409
subObjectsJson[subObject->name ] = exportCFGFromObject (*subObject);
410
410
subObjectsJson[" type" ] = " subObject" ;
411
411
if (!subObject->subObjects .empty ())
412
- subObjectsJson[" subObjects" ] = exportCFGFromSubObjects (subObject->subObjects );
412
+ subObjectsJson[subObject-> name ][ " subObjects" ] = exportCFGFromSubObjects (subObject->subObjects );
413
413
}
414
414
return subObjectsJson;
415
415
};
@@ -418,7 +418,8 @@ Json YulStack::cfgJson() const
418
418
Json jsonObject = Json::object ();
419
419
jsonObject[object.name ] = exportCFGFromObject (object);
420
420
jsonObject[" type" ] = " Object" ;
421
- jsonObject[" subObjects" ] = exportCFGFromSubObjects (object.subObjects );
421
+ if (!object.subObjects .empty ())
422
+ jsonObject[object.name ][" subObjects" ] = exportCFGFromSubObjects (object.subObjects );
422
423
return jsonObject;
423
424
}
424
425
You can’t perform that action at this time.
0 commit comments