Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"mode":"COMPACT","vertices":[{"reference":"","modifier":"","text":"int a = 0","type":"VariableDeclarationExpr","parentType":"ForStmt","_id":"22","_type":"vertex"},{"reference":"","text":"a = 0","type":"VariableDeclarator","parentType":"VariableDeclarationExpr","_id":"23","_type":"vertex"},{"reference":"","identifier":"int","text":"int","type":"PrimitiveType","parentType":"VariableDeclarator","_id":"24","_type":"vertex"},{"reference":"int","identifier":"a","text":"a","type":"SimpleName","parentType":"VariableDeclarator","_id":"25","_type":"vertex"},{"reference":"","identifier":"0","text":"0","type":"IntegerLiteralExpr","parentType":"VariableDeclarator","_id":"26","_type":"vertex"},{"reference":"","text":"a < arr.length","type":"BinaryExpr","parentType":"ForStmt","_id":"27","_type":"vertex"},{"reference":"int","identifier":"a","text":"a","type":"SimpleName","parentType":"NameExpr","_id":"28","_type":"vertex"},{"reference":"","text":"arr.length","type":"FieldAccessExpr","parentType":"BinaryExpr","_id":"29","_type":"vertex"},{"reference":"int[]","identifier":"arr","text":"arr","type":"SimpleName","parentType":"NameExpr","_id":"30","_type":"vertex"},{"reference":"int","identifier":"length","text":"length","type":"SimpleName","parentType":"FieldAccessExpr","_id":"31","_type":"vertex"},{"reference":"","modifier":"","text":"int[] arr","type":"Parameter","parentType":"MethodDeclaration","_id":"10","_type":"vertex"},{"reference":"","text":"a++","type":"UnaryExpr","parentType":"ForStmt","_id":"32","_type":"vertex"},{"reference":"","text":"int[]","type":"ArrayType","parentType":"Parameter","_id":"11","_type":"vertex"},{"reference":"int","identifier":"a","text":"a","type":"SimpleName","parentType":"NameExpr","_id":"33","_type":"vertex"},{"reference":"","identifier":"int","text":"int","type":"PrimitiveType","parentType":"ArrayType","_id":"12","_type":"vertex"},{"reference":"","text":"{\n sum = sum + arr[a];\n}","type":"BlockStmt","parentType":"ForStmt","_id":"34","_type":"vertex"},{"reference":"int[]","identifier":"arr","text":"arr","type":"SimpleName","parentType":"Parameter","_id":"13","_type":"vertex"},{"reference":"","identifier":"=","text":"sum = sum + arr[a]","type":"AssignExpr","parentType":"ExpressionStmt","_id":"35","_type":"vertex"},{"reference":"","identifier":"int","text":"int","type":"PrimitiveType","parentType":"MethodDeclaration","_id":"14","_type":"vertex"},{"reference":"int","identifier":"sum","text":"sum","type":"SimpleName","parentType":"NameExpr","_id":"36","_type":"vertex"},{"reference":"","text":"{\n int sum = 0;\n for (int a = 0; a < arr.length; a++) {\n sum = sum + arr[a];\n }\n return sum;\n}","type":"BlockStmt","parentType":"MethodDeclaration","_id":"15","_type":"vertex"},{"reference":"","text":"sum + arr[a]","type":"BinaryExpr","parentType":"AssignExpr","_id":"37","_type":"vertex"},{"reference":"","modifier":"","text":"int sum = 0","type":"VariableDeclarationExpr","parentType":"ExpressionStmt","_id":"16","_type":"vertex"},{"reference":"int","identifier":"sum","text":"sum","type":"SimpleName","parentType":"NameExpr","_id":"38","_type":"vertex"},{"reference":"","text":"sum = 0","type":"VariableDeclarator","parentType":"VariableDeclarationExpr","_id":"17","_type":"vertex"},{"reference":"","text":"arr[a]","type":"ArrayAccessExpr","parentType":"BinaryExpr","_id":"39","_type":"vertex"},{"reference":"","identifier":"int","text":"int","type":"PrimitiveType","parentType":"VariableDeclarator","_id":"18","_type":"vertex"},{"reference":"int","identifier":"sum","text":"sum","type":"SimpleName","parentType":"VariableDeclarator","_id":"19","_type":"vertex"},{"reference":"","text":"package packagewithsingleclass.com.test;\n\npublic class ForLoop {\n\n static int sum(int[] arr) {\n int sum = 0;\n for (int a = 0; a < arr.length; a++) {\n sum = sum + arr[a];\n }\n return sum;\n }\n}\n","type":"CompilationUnit","_id":"1","_type":"vertex"},{"reference":"","text":"package packagewithsingleclass.com.test;\n\n","type":"PackageDeclaration","parentType":"CompilationUnit","_id":"2","_type":"vertex"},{"reference":"","identifier":"test","text":"packagewithsingleclass.com.test","type":"Name","parentType":"PackageDeclaration","_id":"3","_type":"vertex"},{"reference":"","identifier":"com","text":"packagewithsingleclass.com","type":"Name","parentType":"Name","_id":"4","_type":"vertex"},{"reference":"","identifier":"packagewithsingleclass","text":"packagewithsingleclass","type":"Name","parentType":"Name","_id":"5","_type":"vertex"},{"reference":"","modifier":"public","text":"public class ForLoop {\n\n static int sum(int[] arr) {\n int sum = 0;\n for (int a = 0; a < arr.length; a++) {\n sum = sum + arr[a];\n }\n return sum;\n }\n}","type":"ClassOrInterfaceDeclaration","parentType":"CompilationUnit","_id":"6","_type":"vertex"},{"reference":"java.lang.Object","identifier":"ForLoop","text":"ForLoop","type":"SimpleName","parentType":"ClassOrInterfaceDeclaration","_id":"7","_type":"vertex"},{"reference":"","modifier":"static","text":"static int sum(int[] arr) {\n int sum = 0;\n for (int a = 0; a < arr.length; a++) {\n sum = sum + arr[a];\n }\n return sum;\n}","type":"MethodDeclaration","parentType":"ClassOrInterfaceDeclaration","_id":"8","_type":"vertex"},{"reference":"userDefinedMethodName","identifier":"sum","text":"sum","type":"SimpleName","parentType":"MethodDeclaration","_id":"9","_type":"vertex"},{"reference":"int[]","identifier":"arr","text":"arr","type":"SimpleName","parentType":"NameExpr","_id":"40","_type":"vertex"},{"reference":"int","identifier":"a","text":"a","type":"SimpleName","parentType":"NameExpr","_id":"41","_type":"vertex"},{"reference":"","identifier":"0","text":"0","type":"IntegerLiteralExpr","parentType":"VariableDeclarator","_id":"20","_type":"vertex"},{"reference":"","text":"return sum;","type":"ReturnStmt","parentType":"BlockStmt","_id":"42","_type":"vertex"},{"reference":"","text":"for (int a = 0; a < arr.length; a++) {\n sum = sum + arr[a];\n}","type":"ForStmt","parentType":"BlockStmt","_id":"21","_type":"vertex"},{"reference":"int","identifier":"sum","text":"sum","type":"SimpleName","parentType":"NameExpr","_id":"43","_type":"vertex"}],"edges":[{"type":"LAST_READ","_id":"88","_type":"edge","_outV":"41","_inV":"28","_label":"LAST_READ"},{"type":"AST","_id":"89","_type":"edge","_outV":"15","_inV":"42","_label":"AST"},{"type":"RETURNS_TO","_id":"90","_type":"edge","_outV":"42","_inV":"8","_label":"RETURNS_TO"},{"type":"AST","_id":"91","_type":"edge","_outV":"42","_inV":"43","_label":"AST"},{"type":"LAST_LEXICAL_SCOPE_USE","_id":"92","_type":"edge","_outV":"43","_inV":"38","_label":"LAST_LEXICAL_SCOPE_USE"},{"type":"LAST_WRITE","_id":"93","_type":"edge","_outV":"43","_inV":"19","_label":"LAST_WRITE"},{"type":"LAST_WRITE","_id":"94","_type":"edge","_outV":"43","_inV":"36","_label":"LAST_WRITE"},{"type":"LAST_READ","_id":"95","_type":"edge","_outV":"43","_inV":"19","_label":"LAST_READ"},{"type":"LAST_READ","_id":"96","_type":"edge","_outV":"43","_inV":"36","_label":"LAST_READ"},{"type":"NEXT_TOKEN","_id":"10","_type":"edge","_outV":"9","_inV":"10","_label":"NEXT_TOKEN"},{"type":"AST","_id":"11","_type":"edge","_outV":"8","_inV":"10","_label":"AST"},{"type":"NEXT_TOKEN","_id":"12","_type":"edge","_outV":"10","_inV":"14","_label":"NEXT_TOKEN"},{"type":"AST","_id":"13","_type":"edge","_outV":"10","_inV":"11","_label":"AST"},{"type":"NEXT_TOKEN","_id":"14","_type":"edge","_outV":"11","_inV":"13","_label":"NEXT_TOKEN"},{"type":"AST","_id":"15","_type":"edge","_outV":"11","_inV":"12","_label":"AST"},{"type":"AST","_id":"16","_type":"edge","_outV":"10","_inV":"13","_label":"AST"},{"type":"AST","_id":"17","_type":"edge","_outV":"8","_inV":"14","_label":"AST"},{"type":"NEXT_TOKEN","_id":"18","_type":"edge","_outV":"14","_inV":"15","_label":"NEXT_TOKEN"},{"type":"AST","_id":"19","_type":"edge","_outV":"8","_inV":"15","_label":"AST"},{"type":"AST","_id":"0","_type":"edge","_outV":"1","_inV":"2","_label":"AST"},{"type":"NEXT_TOKEN","_id":"1","_type":"edge","_outV":"2","_inV":"6","_label":"NEXT_TOKEN"},{"type":"AST","_id":"2","_type":"edge","_outV":"2","_inV":"3","_label":"AST"},{"type":"AST","_id":"3","_type":"edge","_outV":"3","_inV":"4","_label":"AST"},{"type":"AST","_id":"4","_type":"edge","_outV":"4","_inV":"5","_label":"AST"},{"type":"AST","_id":"5","_type":"edge","_outV":"1","_inV":"6","_label":"AST"},{"type":"AST","_id":"6","_type":"edge","_outV":"6","_inV":"7","_label":"AST"},{"type":"NEXT_TOKEN","_id":"7","_type":"edge","_outV":"7","_inV":"8","_label":"NEXT_TOKEN"},{"type":"AST","_id":"8","_type":"edge","_outV":"6","_inV":"8","_label":"AST"},{"type":"AST","_id":"9","_type":"edge","_outV":"8","_inV":"9","_label":"AST"},{"type":"AST","_id":"20","_type":"edge","_outV":"15","_inV":"16","_label":"AST"},{"type":"NEXT_TOKEN","_id":"21","_type":"edge","_outV":"16","_inV":"21","_label":"NEXT_TOKEN"},{"type":"AST","_id":"22","_type":"edge","_outV":"16","_inV":"17","_label":"AST"},{"type":"AST","_id":"23","_type":"edge","_outV":"17","_inV":"18","_label":"AST"},{"type":"NEXT_TOKEN","_id":"24","_type":"edge","_outV":"18","_inV":"19","_label":"NEXT_TOKEN"},{"type":"AST","_id":"25","_type":"edge","_outV":"17","_inV":"19","_label":"AST"},{"type":"NEXT_TOKEN","_id":"26","_type":"edge","_outV":"19","_inV":"20","_label":"NEXT_TOKEN"},{"type":"AST","_id":"27","_type":"edge","_outV":"17","_inV":"20","_label":"AST"},{"type":"AST","_id":"28","_type":"edge","_outV":"15","_inV":"21","_label":"AST"},{"type":"NEXT_TOKEN","_id":"29","_type":"edge","_outV":"21","_inV":"42","_label":"NEXT_TOKEN"},{"type":"AST","_id":"30","_type":"edge","_outV":"21","_inV":"22","_label":"AST"},{"type":"NEXT_TOKEN","_id":"31","_type":"edge","_outV":"22","_inV":"27","_label":"NEXT_TOKEN"},{"type":"AST","_id":"32","_type":"edge","_outV":"22","_inV":"23","_label":"AST"},{"type":"AST","_id":"33","_type":"edge","_outV":"23","_inV":"24","_label":"AST"},{"type":"NEXT_TOKEN","_id":"34","_type":"edge","_outV":"24","_inV":"25","_label":"NEXT_TOKEN"},{"type":"AST","_id":"35","_type":"edge","_outV":"23","_inV":"25","_label":"AST"},{"type":"NEXT_TOKEN","_id":"36","_type":"edge","_outV":"25","_inV":"26","_label":"NEXT_TOKEN"},{"type":"AST","_id":"37","_type":"edge","_outV":"23","_inV":"26","_label":"AST"},{"type":"AST","_id":"38","_type":"edge","_outV":"21","_inV":"27","_label":"AST"},{"type":"NEXT_TOKEN","_id":"39","_type":"edge","_outV":"27","_inV":"32","_label":"NEXT_TOKEN"},{"type":"AST","_id":"40","_type":"edge","_outV":"27","_inV":"28","_label":"AST"},{"type":"LAST_LEXICAL_SCOPE_USE","_id":"41","_type":"edge","_outV":"28","_inV":"25","_label":"LAST_LEXICAL_SCOPE_USE"},{"type":"LAST_WRITE","_id":"42","_type":"edge","_outV":"28","_inV":"25","_label":"LAST_WRITE"},{"type":"LAST_WRITE","_id":"43","_type":"edge","_outV":"28","_inV":"33","_label":"LAST_WRITE"},{"type":"LAST_READ","_id":"44","_type":"edge","_outV":"28","_inV":"25","_label":"LAST_READ"},{"type":"LAST_READ","_id":"45","_type":"edge","_outV":"28","_inV":"33","_label":"LAST_READ"},{"type":"NEXT_TOKEN","_id":"46","_type":"edge","_outV":"28","_inV":"29","_label":"NEXT_TOKEN"},{"type":"AST","_id":"47","_type":"edge","_outV":"27","_inV":"29","_label":"AST"},{"type":"AST","_id":"48","_type":"edge","_outV":"29","_inV":"30","_label":"AST"},{"type":"LAST_WRITE","_id":"49","_type":"edge","_outV":"30","_inV":"13","_label":"LAST_WRITE"},{"type":"LAST_READ","_id":"50","_type":"edge","_outV":"30","_inV":"13","_label":"LAST_READ"},{"type":"LAST_READ","_id":"51","_type":"edge","_outV":"30","_inV":"40","_label":"LAST_READ"},{"type":"NEXT_TOKEN","_id":"52","_type":"edge","_outV":"30","_inV":"31","_label":"NEXT_TOKEN"},{"type":"AST","_id":"53","_type":"edge","_outV":"29","_inV":"31","_label":"AST"},{"type":"AST","_id":"54","_type":"edge","_outV":"21","_inV":"32","_label":"AST"},{"type":"NEXT_TOKEN","_id":"55","_type":"edge","_outV":"32","_inV":"34","_label":"NEXT_TOKEN"},{"type":"AST","_id":"56","_type":"edge","_outV":"32","_inV":"33","_label":"AST"},{"type":"LAST_LEXICAL_SCOPE_USE","_id":"57","_type":"edge","_outV":"33","_inV":"28","_label":"LAST_LEXICAL_SCOPE_USE"},{"type":"LAST_WRITE","_id":"58","_type":"edge","_outV":"33","_inV":"25","_label":"LAST_WRITE"},{"type":"LAST_WRITE","_id":"59","_type":"edge","_outV":"33","_inV":"33","_label":"LAST_WRITE"},{"type":"LAST_READ","_id":"60","_type":"edge","_outV":"33","_inV":"41","_label":"LAST_READ"},{"type":"AST","_id":"61","_type":"edge","_outV":"21","_inV":"34","_label":"AST"},{"type":"AST","_id":"62","_type":"edge","_outV":"34","_inV":"35","_label":"AST"},{"type":"AST","_id":"63","_type":"edge","_outV":"35","_inV":"36","_label":"AST"},{"type":"LAST_LEXICAL_SCOPE_USE","_id":"64","_type":"edge","_outV":"36","_inV":"19","_label":"LAST_LEXICAL_SCOPE_USE"},{"type":"LAST_WRITE","_id":"65","_type":"edge","_outV":"36","_inV":"19","_label":"LAST_WRITE"},{"type":"LAST_WRITE","_id":"66","_type":"edge","_outV":"36","_inV":"36","_label":"LAST_WRITE"},{"type":"COMPUTED_FROM","_id":"67","_type":"edge","_outV":"36","_inV":"38","_label":"COMPUTED_FROM"},{"type":"COMPUTED_FROM","_id":"68","_type":"edge","_outV":"36","_inV":"40","_label":"COMPUTED_FROM"},{"type":"COMPUTED_FROM","_id":"69","_type":"edge","_outV":"36","_inV":"41","_label":"COMPUTED_FROM"},{"type":"LAST_READ","_id":"70","_type":"edge","_outV":"36","_inV":"38","_label":"LAST_READ"},{"type":"NEXT_TOKEN","_id":"71","_type":"edge","_outV":"36","_inV":"37","_label":"NEXT_TOKEN"},{"type":"AST","_id":"72","_type":"edge","_outV":"35","_inV":"37","_label":"AST"},{"type":"AST","_id":"73","_type":"edge","_outV":"37","_inV":"38","_label":"AST"},{"type":"LAST_LEXICAL_SCOPE_USE","_id":"74","_type":"edge","_outV":"38","_inV":"36","_label":"LAST_LEXICAL_SCOPE_USE"},{"type":"LAST_WRITE","_id":"75","_type":"edge","_outV":"38","_inV":"19","_label":"LAST_WRITE"},{"type":"LAST_READ","_id":"76","_type":"edge","_outV":"38","_inV":"19","_label":"LAST_READ"},{"type":"LAST_READ","_id":"77","_type":"edge","_outV":"38","_inV":"36","_label":"LAST_READ"},{"type":"NEXT_TOKEN","_id":"78","_type":"edge","_outV":"38","_inV":"39","_label":"NEXT_TOKEN"},{"type":"AST","_id":"79","_type":"edge","_outV":"37","_inV":"39","_label":"AST"},{"type":"AST","_id":"80","_type":"edge","_outV":"39","_inV":"40","_label":"AST"},{"type":"LAST_LEXICAL_SCOPE_USE","_id":"81","_type":"edge","_outV":"40","_inV":"13","_label":"LAST_LEXICAL_SCOPE_USE"},{"type":"LAST_WRITE","_id":"82","_type":"edge","_outV":"40","_inV":"13","_label":"LAST_WRITE"},{"type":"LAST_READ","_id":"83","_type":"edge","_outV":"40","_inV":"30","_label":"LAST_READ"},{"type":"NEXT_TOKEN","_id":"84","_type":"edge","_outV":"40","_inV":"41","_label":"NEXT_TOKEN"},{"type":"AST","_id":"85","_type":"edge","_outV":"39","_inV":"41","_label":"AST"},{"type":"LAST_LEXICAL_SCOPE_USE","_id":"86","_type":"edge","_outV":"41","_inV":"33","_label":"LAST_LEXICAL_SCOPE_USE"},{"type":"LAST_WRITE","_id":"87","_type":"edge","_outV":"41","_inV":"25","_label":"LAST_WRITE"}]}
Advertisement
Add Comment
Please, Sign In to add comment